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=5.0.15.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.See: https://docs.microsoft.com/en-us/dotnet/api/System.IO.Packaging.PackageDigitalSignatureManager
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: WindowsBase, Version=5.0.15.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=5.0.15.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, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, OutOfMemoryException
-
-
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, ArgumentException, ObjectDisposedException, IOException, InvalidOperationException, FileFormatException, XmlException, CultureNotFoundException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, OutOfMemoryException, NotSupportedException, RankException, ArrayTypeMismatchException, CryptographicException, InvalidTimeZoneException, OverflowException, SecurityException, MissingMethodException, TargetInvocationException, FormatException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionObjectDisposedExceptionIOExceptionInvalidOperationExceptionFileFormatExceptionXmlExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionNotSupportedExceptionRankExceptionArrayTypeMismatchExceptionCryptographicExceptionInvalidTimeZoneExceptionOverflowExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionFormatException
-
Countersign
public PackageDigitalSignature Countersign(X509Certificate certificate) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, ArrayTypeMismatchException, IOException, FileFormatException, XmlException, OutOfMemoryException, FormatException, KeyNotFoundException, CryptographicException, CryptographicUnexpectedOperationException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionArrayTypeMismatchExceptionIOExceptionFileFormatExceptionXmlExceptionOutOfMemoryExceptionFormatExceptionKeyNotFoundExceptionCryptographicExceptionCryptographicUnexpectedOperationException
-
GetSignature
public PackageDigitalSignature GetSignature(Uri signatureUri) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, ArrayTypeMismatchException, IOException, FileFormatException, XmlException, OutOfMemoryException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionArrayTypeMismatchExceptionIOExceptionFileFormatExceptionXmlExceptionOutOfMemoryException
-
VerifySignatures
public VerifyResult VerifySignatures(boolean exitOnFailure) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, IOException, IndexOutOfRangeException, FileFormatException, XmlException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, NotSupportedException, RankException, ArrayTypeMismatchException, CryptographicException, XPathException, FormatException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionFileFormatExceptionXmlExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionNotSupportedExceptionRankExceptionArrayTypeMismatchExceptionCryptographicExceptionXPathExceptionFormatException
-
VerifyCertificate
public static X509ChainStatusFlags VerifyCertificate(X509Certificate certificate) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, ArrayTypeMismatchException, FormatException, CryptographicException, OverflowException, MissingMethodException, TargetInvocationException, OutOfMemoryException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionArrayTypeMismatchExceptionFormatExceptionCryptographicExceptionOverflowExceptionMissingMethodExceptionTargetInvocationExceptionOutOfMemoryException
-
RemoveAllSignatures
public void RemoveAllSignatures() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, CultureNotFoundException, OutOfMemoryException, ExternalException, NotSupportedException, IOException, IndexOutOfRangeException, FileFormatException, XmlException, ArgumentOutOfRangeException, RankException, ArrayTypeMismatchException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionOutOfMemoryExceptionExternalExceptionNotSupportedExceptionIOExceptionIndexOutOfRangeExceptionFileFormatExceptionXmlExceptionArgumentOutOfRangeExceptionRankExceptionArrayTypeMismatchException
-
RemoveSignature
public void RemoveSignature(Uri signatureUri) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, CultureNotFoundException, OutOfMemoryException, ExternalException, NotSupportedException, IOException, FileFormatException, XmlException, ArgumentOutOfRangeException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionOutOfMemoryExceptionExternalExceptionNotSupportedExceptionIOExceptionFileFormatExceptionXmlExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionKeyNotFoundException
-
getIsSigned
public boolean getIsSigned() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, IOException, IndexOutOfRangeException, FileFormatException, XmlException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, NotSupportedException, RankException, ArrayTypeMismatchException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionFileFormatExceptionXmlExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionNotSupportedExceptionRankExceptionArrayTypeMismatchException
-
getCertificateOption
public CertificateEmbeddingOption getCertificateOption() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCertificateOption
public void setCertificateOption(CertificateEmbeddingOption CertificateOption) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, ArrayTypeMismatchException
-
getDefaultHashAlgorithm
public static java.lang.String getDefaultHashAlgorithm() throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedException
-
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, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, ArrayTypeMismatchException, CultureNotFoundException, OutOfMemoryException, ExternalException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionOutOfMemoryExceptionExternalException
-
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, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, ArrayTypeMismatchException, CultureNotFoundException, OutOfMemoryException, ExternalException, FormatException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionOutOfMemoryExceptionExternalExceptionFormatException
-
getSignatureOrigin
public Uri getSignatureOrigin() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, IOException, ArgumentOutOfRangeException, IndexOutOfRangeException, KeyNotFoundException, FileFormatException, XmlException, OutOfMemoryException, ExternalException, UriFormatException, ArrayTypeMismatchException, NotSupportedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIOExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionKeyNotFoundExceptionFileFormatExceptionXmlExceptionOutOfMemoryExceptionExternalExceptionUriFormatExceptionArrayTypeMismatchExceptionNotSupportedException
-
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
-
-