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=6.0.2.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 String
assemblyFullName
Fully assembly qualified name: WindowsBase, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static String
assemblyShortName
Assembly name: WindowsBasestatic String
className
Qualified class name: System.IO.Packaging.PackageDigitalSignatureManagerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description PackageDigitalSignatureManager()
PackageDigitalSignatureManager(Object instance)
Internal constructor.PackageDigitalSignatureManager(Package _package)
-
Method Summary
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: WindowsBase, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: WindowsBase- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.IO.Packaging.PackageDigitalSignatureManager- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PackageDigitalSignatureManager
public PackageDigitalSignatureManager(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
PackageDigitalSignatureManager
public PackageDigitalSignatureManager() throws Throwable
- Throws:
Throwable
-
PackageDigitalSignatureManager
public PackageDigitalSignatureManager(Package _package) throws Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, OutOfMemoryException
-
-
Method Detail
-
getJCOAssemblyName
public 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 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 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 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 PackageDigitalSignatureManager cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoPackageDigitalSignatureManager
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
PackageDigitalSignatureManager
instance- Throws:
Throwable
- in case of error during cast operation
-
Countersign
public PackageDigitalSignature Countersign() throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, IOException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, FileFormatException, XmlException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, NotSupportedException, RankException, ArrayTypeMismatchException, CryptographicException, InvalidTimeZoneException, OverflowException, SecurityException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, FormatException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
IOException
IndexOutOfRangeException
PlatformNotSupportedException
InvalidOperationException
FileFormatException
XmlException
CultureNotFoundException
ArgumentOutOfRangeException
OutOfMemoryException
NotSupportedException
RankException
ArrayTypeMismatchException
CryptographicException
InvalidTimeZoneException
OverflowException
SecurityException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
FormatException
-
Countersign
public PackageDigitalSignature Countersign(X509Certificate certificate) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IOException, FileFormatException, XmlException, OutOfMemoryException, FormatException, KeyNotFoundException, CryptographicException, CryptographicUnexpectedOperationException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
IOException
FileFormatException
XmlException
OutOfMemoryException
FormatException
KeyNotFoundException
CryptographicException
CryptographicUnexpectedOperationException
-
GetSignature
public PackageDigitalSignature GetSignature(Uri signatureUri) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IOException, FileFormatException, XmlException, OutOfMemoryException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
IOException
FileFormatException
XmlException
OutOfMemoryException
-
VerifySignatures
public VerifyResult VerifySignatures(boolean exitOnFailure) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ObjectDisposedException, IOException, IndexOutOfRangeException, PlatformNotSupportedException, FileFormatException, XmlException, CultureNotFoundException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, RankException, ArrayTypeMismatchException, CryptographicException, XPathException, FormatException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
ObjectDisposedException
IOException
IndexOutOfRangeException
PlatformNotSupportedException
FileFormatException
XmlException
CultureNotFoundException
NotSupportedException
ArgumentOutOfRangeException
OutOfMemoryException
RankException
ArrayTypeMismatchException
CryptographicException
XPathException
FormatException
-
VerifyCertificate
public static X509ChainStatusFlags VerifyCertificate(X509Certificate certificate) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OverflowException, MissingMethodException, TargetInvocationException, OutOfMemoryException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OverflowException
MissingMethodException
TargetInvocationException
OutOfMemoryException
-
RemoveAllSignatures
public void RemoveAllSignatures() throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, IOException, FileFormatException, XmlException, ArgumentOutOfRangeException, NotSupportedException, RankException, ArrayTypeMismatchException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
CultureNotFoundException
PlatformNotSupportedException
IndexOutOfRangeException
OutOfMemoryException
ExternalException
IOException
FileFormatException
XmlException
ArgumentOutOfRangeException
NotSupportedException
RankException
ArrayTypeMismatchException
-
RemoveSignature
public void RemoveSignature(Uri signatureUri) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, IOException, FileFormatException, XmlException, ArgumentOutOfRangeException, NotSupportedException, RankException, ArrayTypeMismatchException, KeyNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
CultureNotFoundException
PlatformNotSupportedException
IndexOutOfRangeException
OutOfMemoryException
ExternalException
IOException
FileFormatException
XmlException
ArgumentOutOfRangeException
NotSupportedException
RankException
ArrayTypeMismatchException
KeyNotFoundException
-
getIsSigned
public boolean getIsSigned() throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ObjectDisposedException, IOException, IndexOutOfRangeException, PlatformNotSupportedException, FileFormatException, XmlException, CultureNotFoundException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, RankException, ArrayTypeMismatchException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
ObjectDisposedException
IOException
IndexOutOfRangeException
PlatformNotSupportedException
FileFormatException
XmlException
CultureNotFoundException
NotSupportedException
ArgumentOutOfRangeException
OutOfMemoryException
RankException
ArrayTypeMismatchException
-
getCertificateOption
public CertificateEmbeddingOption getCertificateOption() throws Throwable
- Throws:
Throwable
-
setCertificateOption
public void setCertificateOption(CertificateEmbeddingOption CertificateOption) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
getDefaultHashAlgorithm
public static String getDefaultHashAlgorithm() throws Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException
-
setHashAlgorithm
public void setHashAlgorithm(String HashAlgorithm) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, ExternalException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
OutOfMemoryException
ExternalException
-
getSignatureOriginRelationshipType
public static String getSignatureOriginRelationshipType() throws Throwable
- Throws:
Throwable
-
setTimeFormat
public void setTimeFormat(String TimeFormat) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, ExternalException, FormatException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
OutOfMemoryException
ExternalException
FormatException
-
getSignatureOrigin
public Uri getSignatureOrigin() throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, IOException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, KeyNotFoundException, FileFormatException, XmlException, OutOfMemoryException, ExternalException, UriFormatException, NotSupportedException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
IOException
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentOutOfRangeException
KeyNotFoundException
FileFormatException
XmlException
OutOfMemoryException
ExternalException
UriFormatException
NotSupportedException
-
addInvalidSignatureEvent
public void addInvalidSignatureEvent(InvalidSignatureEventHandler handler) throws Throwable
- Throws:
Throwable
-
removeInvalidSignatureEvent
public void removeInvalidSignatureEvent(InvalidSignatureEventHandler handler) throws Throwable
- Throws:
Throwable
-
-