Class SecurityUtilities
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- microsoft.build.tasks.deployment.manifestutilities.SecurityUtilities
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class SecurityUtilities extends NetObject
The base .NET class managing Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities, Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: Microsoft.Build.Tasks.v4.0static java.lang.String
className
Qualified class name: Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilitiesstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description SecurityUtilities()
SecurityUtilities(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecurityUtilities
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoSecurityUtilities
, a cast assert is made to check if types are compatible.static PermissionSet
ComputeZonePermissionSet(java.lang.String targetZone, PermissionSet includedPermissionSet, java.lang.String[] excludedPermissions)
static PermissionSet
ComputeZonePermissionSet(java.lang.String dupParam0, PermissionSet dupParam1, JCORefOut dupParam2)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic PermissionSet
IdentityListToPermissionSet(java.lang.String[] ids)
static PermissionSet
IdentityListToPermissionSet(JCORefOut dupParam0)
static java.lang.String[]
PermissionSetToIdentityList(PermissionSet permissionSet)
void
setJCOInstance(JCObject instance)
static void
SignFile(java.lang.String certPath, SecureString certPassword, Uri timestampUrl, java.lang.String path)
static void
SignFile(java.lang.String certThumbprint, Uri timestampUrl, java.lang.String path)
static void
SignFile(X509Certificate2 cert, Uri timestampUrl, java.lang.String path)
static PermissionSet
XmlToPermissionSet(XmlElement element)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: Microsoft.Build.Tasks.v4.0- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static SecurityUtilities cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoSecurityUtilities
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
SecurityUtilities
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
ComputeZonePermissionSet
public static PermissionSet ComputeZonePermissionSet(java.lang.String targetZone, PermissionSet includedPermissionSet, java.lang.String[] excludedPermissions) throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, NotSupportedException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, XmlException, NullReferenceException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
NotSupportedException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
XmlException
NullReferenceException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
OutOfMemoryException
-
ComputeZonePermissionSet
public static PermissionSet ComputeZonePermissionSet(java.lang.String dupParam0, PermissionSet dupParam1, JCORefOut dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, NotSupportedException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, XmlException, NullReferenceException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
NotSupportedException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
XmlException
NullReferenceException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
OutOfMemoryException
-
IdentityListToPermissionSet
public static PermissionSet IdentityListToPermissionSet(java.lang.String[] ids) throws java.lang.Throwable, ArgumentOutOfRangeException, NullReferenceException, ArgumentNullException, ArgumentException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, XmlException, RankException, SecurityException, TargetParameterCountException, NotSupportedException
-
IdentityListToPermissionSet
public static PermissionSet IdentityListToPermissionSet(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentOutOfRangeException, NullReferenceException, ArgumentNullException, ArgumentException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, XmlException, RankException, SecurityException, TargetParameterCountException, NotSupportedException
-
XmlToPermissionSet
public static PermissionSet XmlToPermissionSet(XmlElement element) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, NullReferenceException, SecurityException, NotSupportedException, MemberAccessException, TargetException, TargetParameterCountException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
ArgumentOutOfRangeException
OutOfMemoryException
FormatException
NullReferenceException
SecurityException
NotSupportedException
MemberAccessException
TargetException
TargetParameterCountException
-
PermissionSetToIdentityList
public static java.lang.String[] PermissionSetToIdentityList(PermissionSet permissionSet) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, NotSupportedException, IndexOutOfRangeException, ObjectDisposedException, InvalidOperationException, SecurityException, UnauthorizedAccessException, IOException, ArgumentOutOfRangeException, MissingManifestResourceException, XmlException, XmlSchemaException, NullReferenceException, XPathException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotImplementedException
NotSupportedException
IndexOutOfRangeException
ObjectDisposedException
InvalidOperationException
SecurityException
UnauthorizedAccessException
IOException
ArgumentOutOfRangeException
MissingManifestResourceException
XmlException
XmlSchemaException
NullReferenceException
XPathException
-
SignFile
public static void SignFile(X509Certificate2 cert, Uri timestampUrl, java.lang.String path) throws java.lang.Throwable, NotImplementedException, ArgumentNullException, ArgumentException, TypeLoadException, InvalidOperationException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, ObjectDisposedException, AbandonedMutexException, CultureNotFoundException, PathTooLongException, MissingManifestResourceException, FileNotFoundException, CryptographicException, NullReferenceException, IOException, AccessViolationException, RankException, OverflowException, PlatformNotSupportedException, ApplicationException, Win32Exception, KeyNotFoundException, WarningException, ThreadAbortException, UnauthorizedAccessException, PrivilegeNotHeldException, XmlException, XmlSchemaException, XPathException, CryptographicUnexpectedOperationException, FormatException
- Throws:
java.lang.Throwable
NotImplementedException
ArgumentNullException
ArgumentException
TypeLoadException
InvalidOperationException
SecurityException
MissingMethodException
TargetInvocationException
NotSupportedException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
ObjectDisposedException
AbandonedMutexException
CultureNotFoundException
PathTooLongException
MissingManifestResourceException
FileNotFoundException
CryptographicException
NullReferenceException
IOException
AccessViolationException
RankException
OverflowException
PlatformNotSupportedException
ApplicationException
Win32Exception
KeyNotFoundException
WarningException
ThreadAbortException
UnauthorizedAccessException
PrivilegeNotHeldException
XmlException
XmlSchemaException
XPathException
CryptographicUnexpectedOperationException
FormatException
-
SignFile
public static void SignFile(java.lang.String certPath, SecureString certPassword, Uri timestampUrl, java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, ArgumentOutOfRangeException, NotSupportedException, OutOfMemoryException, ObjectDisposedException, CryptographicException, InvalidOperationException, AccessViolationException, NotImplementedException, TypeLoadException, MissingMethodException, TargetInvocationException, CultureNotFoundException, MissingManifestResourceException, FormatException, NullReferenceException, SecurityException, RankException, ApplicationException, Win32Exception, KeyNotFoundException, IndexOutOfRangeException, WarningException, ThreadAbortException, PrivilegeNotHeldException, XmlException, XmlSchemaException, XPathException, PlatformNotSupportedException, CryptographicUnexpectedOperationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
ArgumentOutOfRangeException
NotSupportedException
OutOfMemoryException
ObjectDisposedException
CryptographicException
InvalidOperationException
AccessViolationException
NotImplementedException
TypeLoadException
MissingMethodException
TargetInvocationException
CultureNotFoundException
MissingManifestResourceException
FormatException
NullReferenceException
SecurityException
RankException
ApplicationException
Win32Exception
KeyNotFoundException
IndexOutOfRangeException
WarningException
ThreadAbortException
PrivilegeNotHeldException
XmlException
XmlSchemaException
XPathException
PlatformNotSupportedException
CryptographicUnexpectedOperationException
-
SignFile
public static void SignFile(java.lang.String certThumbprint, Uri timestampUrl, java.lang.String path) throws java.lang.Throwable, NotImplementedException, ArgumentNullException, ArgumentException, TypeLoadException, InvalidOperationException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, ObjectDisposedException, AbandonedMutexException, CultureNotFoundException, MissingManifestResourceException, CryptographicException, AccessViolationException, RankException, OverflowException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NullReferenceException, ApplicationException, Win32Exception, KeyNotFoundException, WarningException, ThreadAbortException, PrivilegeNotHeldException, XmlException, XmlSchemaException, XPathException, PlatformNotSupportedException, CryptographicUnexpectedOperationException, FormatException
- Throws:
java.lang.Throwable
NotImplementedException
ArgumentNullException
ArgumentException
TypeLoadException
InvalidOperationException
SecurityException
MissingMethodException
TargetInvocationException
NotSupportedException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
ObjectDisposedException
AbandonedMutexException
CultureNotFoundException
MissingManifestResourceException
CryptographicException
AccessViolationException
RankException
OverflowException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NullReferenceException
ApplicationException
Win32Exception
KeyNotFoundException
WarningException
ThreadAbortException
PrivilegeNotHeldException
XmlException
XmlSchemaException
XPathException
PlatformNotSupportedException
CryptographicUnexpectedOperationException
FormatException
-
-