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.StringassemblyFullNameFully assembly qualified name: Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: Microsoft.Build.Tasks.v4.0static java.lang.StringclassNameQualified class name: Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilitiesstatic JCTypeclassTypeThe 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 SecurityUtilitiescast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoSecurityUtilities, a cast assert is made to check if types are compatible.static PermissionSetComputeZonePermissionSet(java.lang.String targetZone, PermissionSet includedPermissionSet, java.lang.String[] excludedPermissions)static PermissionSetComputeZonePermissionSet(java.lang.String dupParam0, PermissionSet dupParam1, JCORefOut dupParam2)java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class Typestatic PermissionSetIdentityListToPermissionSet(java.lang.String[] ids)static PermissionSetIdentityListToPermissionSet(JCORefOut dupParam0)static java.lang.String[]PermissionSetToIdentityList(PermissionSet permissionSet)voidsetJCOInstance(JCObject instance)static voidSignFile(java.lang.String certPath, SecureString certPassword, Uri timestampUrl, java.lang.String path)static voidSignFile(java.lang.String certThumbprint, Uri timestampUrl, java.lang.String path)static voidSignFile(X509Certificate2 cert, Uri timestampUrl, java.lang.String path)static PermissionSetXmlToPermissionSet(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:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static SecurityUtilities cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoSecurityUtilities, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
SecurityUtilitiesinstance- 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.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionNotSupportedExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionFormatExceptionXmlExceptionNullReferenceExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionOutOfMemoryException
-
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.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionNotSupportedExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionFormatExceptionXmlExceptionNullReferenceExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionOutOfMemoryException
-
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.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionNullReferenceExceptionSecurityExceptionNotSupportedExceptionMemberAccessExceptionTargetExceptionTargetParameterCountException
-
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.ThrowableArgumentNullExceptionArgumentExceptionNotImplementedExceptionNotSupportedExceptionIndexOutOfRangeExceptionObjectDisposedExceptionInvalidOperationExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionXmlExceptionXmlSchemaExceptionNullReferenceExceptionXPathException
-
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.ThrowableNotImplementedExceptionArgumentNullExceptionArgumentExceptionTypeLoadExceptionInvalidOperationExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexExceptionCultureNotFoundExceptionPathTooLongExceptionMissingManifestResourceExceptionFileNotFoundExceptionCryptographicExceptionNullReferenceExceptionIOExceptionAccessViolationExceptionRankExceptionOverflowExceptionPlatformNotSupportedExceptionApplicationExceptionWin32ExceptionKeyNotFoundExceptionWarningExceptionThreadAbortExceptionUnauthorizedAccessExceptionPrivilegeNotHeldExceptionXmlExceptionXmlSchemaExceptionXPathExceptionCryptographicUnexpectedOperationExceptionFormatException
-
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.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionArgumentOutOfRangeExceptionNotSupportedExceptionOutOfMemoryExceptionObjectDisposedExceptionCryptographicExceptionInvalidOperationExceptionAccessViolationExceptionNotImplementedExceptionTypeLoadExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionMissingManifestResourceExceptionFormatExceptionNullReferenceExceptionSecurityExceptionRankExceptionApplicationExceptionWin32ExceptionKeyNotFoundExceptionIndexOutOfRangeExceptionWarningExceptionThreadAbortExceptionPrivilegeNotHeldExceptionXmlExceptionXmlSchemaExceptionXPathExceptionPlatformNotSupportedExceptionCryptographicUnexpectedOperationException
-
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.ThrowableNotImplementedExceptionArgumentNullExceptionArgumentExceptionTypeLoadExceptionInvalidOperationExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexExceptionCultureNotFoundExceptionMissingManifestResourceExceptionCryptographicExceptionAccessViolationExceptionRankExceptionOverflowExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNullReferenceExceptionApplicationExceptionWin32ExceptionKeyNotFoundExceptionWarningExceptionThreadAbortExceptionPrivilegeNotHeldExceptionXmlExceptionXmlSchemaExceptionXPathExceptionPlatformNotSupportedExceptionCryptographicUnexpectedOperationExceptionFormatException
-
-