Package system.io.packaging
Class PackageDigitalSignatureManager
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.io.packaging.PackageDigitalSignatureManager
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class PackageDigitalSignatureManager extends NetObject
The base .NET class managing System.IO.Packaging.PackageDigitalSignatureManager, WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.Packaging.PackageDigitalSignatureManager
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: WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.StringassemblyShortNameAssembly name: WindowsBasestatic java.lang.StringclassNameQualified class name: System.IO.Packaging.PackageDigitalSignatureManagerstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description PackageDigitalSignatureManager()PackageDigitalSignatureManager(java.lang.Object instance)Internal constructor.PackageDigitalSignatureManager(Package _package)
-
Method Summary
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: WindowsBase- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.IO.Packaging.PackageDigitalSignatureManager- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PackageDigitalSignatureManager
public PackageDigitalSignatureManager(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
PackageDigitalSignatureManager
public PackageDigitalSignatureManager() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
PackageDigitalSignatureManager
public PackageDigitalSignatureManager(Package _package) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeException
-
-
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 PackageDigitalSignatureManager cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoPackageDigitalSignatureManager, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
PackageDigitalSignatureManagerinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Countersign
public PackageDigitalSignature Countersign() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, ObjectDisposedException, IOException, ArgumentException, FileFormatException, XmlException, ArgumentOutOfRangeException, IndexOutOfRangeException, OutOfMemoryException, CryptographicException, FormatException, AccessViolationException, InvalidTimeZoneException, MissingMethodException, TargetInvocationException, NotSupportedException, RankException, OverflowException, NotImplementedException, CultureNotFoundException
- Throws:
java.lang.ThrowableArgumentNullExceptionMissingManifestResourceExceptionInvalidOperationExceptionObjectDisposedExceptionIOExceptionArgumentExceptionFileFormatExceptionXmlExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionCryptographicExceptionFormatExceptionAccessViolationExceptionInvalidTimeZoneExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionRankExceptionOverflowExceptionNotImplementedExceptionCultureNotFoundException
-
Countersign
public PackageDigitalSignature Countersign(X509Certificate certificate) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, ObjectDisposedException, IOException, ArgumentException, FileFormatException, XmlException, ArgumentOutOfRangeException, IndexOutOfRangeException, OutOfMemoryException, FormatException, AccessViolationException, CryptographicException, NotSupportedException, CryptographicUnexpectedOperationException
- Throws:
java.lang.ThrowableArgumentNullExceptionMissingManifestResourceExceptionInvalidOperationExceptionObjectDisposedExceptionIOExceptionArgumentExceptionFileFormatExceptionXmlExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionAccessViolationExceptionCryptographicExceptionNotSupportedExceptionCryptographicUnexpectedOperationException
-
GetSignature
public PackageDigitalSignature GetSignature(Uri signatureUri) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, ObjectDisposedException, IOException, ArgumentException, FileFormatException, XmlException, ArgumentOutOfRangeException, IndexOutOfRangeException, OutOfMemoryException
-
VerifySignatures
public VerifyResult VerifySignatures(boolean exitOnFailure) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IOException, ArgumentException, ArgumentOutOfRangeException, FileFormatException, XmlException, UriFormatException, IndexOutOfRangeException, OutOfMemoryException, CryptographicException, AccessViolationException, NullReferenceException, XPathException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, ConfigurationErrorsException, FormatException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentNullExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionArgumentExceptionArgumentOutOfRangeExceptionFileFormatExceptionXmlExceptionUriFormatExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionCryptographicExceptionAccessViolationExceptionNullReferenceExceptionXPathExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionConfigurationErrorsExceptionFormatExceptionNotImplementedException
-
VerifyCertificate
public static X509ChainStatusFlags VerifyCertificate(X509Certificate certificate) throws java.lang.Throwable, ArgumentNullException, AccessViolationException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, OverflowException, CryptographicException, OutOfMemoryException, IndexOutOfRangeException, SecurityException, ApplicationException, NotSupportedException, NullReferenceException
- Throws:
java.lang.ThrowableArgumentNullExceptionAccessViolationExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionOverflowExceptionCryptographicExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionSecurityExceptionApplicationExceptionNotSupportedExceptionNullReferenceException
-
RemoveAllSignatures
public void RemoveAllSignatures() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, IOException, ArgumentOutOfRangeException, FileFormatException, XmlException, UriFormatException, IndexOutOfRangeException, OutOfMemoryException, NotSupportedException, SecurityException, CultureNotFoundException- Throws:
java.lang.ThrowableArgumentNullExceptionMissingManifestResourceExceptionNotImplementedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionArgumentOutOfRangeExceptionFileFormatExceptionXmlExceptionUriFormatExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionNotSupportedExceptionSecurityExceptionCultureNotFoundException
-
RemoveSignature
public void RemoveSignature(Uri signatureUri) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, IOException, FileFormatException, XmlException, ArgumentOutOfRangeException, IndexOutOfRangeException, OutOfMemoryException, NotSupportedException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentNullExceptionMissingManifestResourceExceptionNotImplementedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionFileFormatExceptionXmlExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionNotSupportedExceptionKeyNotFoundException
-
getIsSigned
public boolean getIsSigned() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IOException, ArgumentException, ArgumentOutOfRangeException, FileFormatException, XmlException, UriFormatException, IndexOutOfRangeException, OutOfMemoryException
-
getCertificateOption
public CertificateEmbeddingOption getCertificateOption() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCertificateOption
public void setCertificateOption(CertificateEmbeddingOption CertificateOption) throws java.lang.Throwable, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentOutOfRangeException
-
getDefaultHashAlgorithm
public static java.lang.String getDefaultHashAlgorithm() throws java.lang.Throwable, ArgumentException, ArgumentNullException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullException
-
getHashAlgorithm
public java.lang.String getHashAlgorithm() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setHashAlgorithm
public void setHashAlgorithm(java.lang.String HashAlgorithm) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
-
getSignatureOriginRelationshipType
public static java.lang.String getSignatureOriginRelationshipType() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getTimeFormat
public java.lang.String getTimeFormat() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setTimeFormat
public void setTimeFormat(java.lang.String TimeFormat) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
-
getSignatureOrigin
public Uri getSignatureOrigin() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, IOException, ArgumentOutOfRangeException, FileFormatException, XmlException, UriFormatException, OutOfMemoryException
-
addInvalidSignatureEvent
public void addInvalidSignatureEvent(InvalidSignatureEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeInvalidSignatureEvent
public void removeInvalidSignatureEvent(InvalidSignatureEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-