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.String
assemblyFullName
Fully assembly qualified name: WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.String
assemblyShortName
Assembly name: WindowsBasestatic java.lang.String
className
Qualified class name: System.IO.Packaging.PackageDigitalSignatureManagerstatic JCType
classType
The 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.Throwable
Internal 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.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
-
-
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 PackageDigitalSignatureManager cast(IJCOBridgeReflected from) throws java.lang.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:
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.Throwable
ArgumentNullException
MissingManifestResourceException
InvalidOperationException
ObjectDisposedException
IOException
ArgumentException
FileFormatException
XmlException
ArgumentOutOfRangeException
IndexOutOfRangeException
OutOfMemoryException
CryptographicException
FormatException
AccessViolationException
InvalidTimeZoneException
MissingMethodException
TargetInvocationException
NotSupportedException
RankException
OverflowException
NotImplementedException
CultureNotFoundException
-
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.Throwable
ArgumentNullException
MissingManifestResourceException
InvalidOperationException
ObjectDisposedException
IOException
ArgumentException
FileFormatException
XmlException
ArgumentOutOfRangeException
IndexOutOfRangeException
OutOfMemoryException
FormatException
AccessViolationException
CryptographicException
NotSupportedException
CryptographicUnexpectedOperationException
-
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.Throwable
ArgumentNullException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
IOException
ArgumentException
ArgumentOutOfRangeException
FileFormatException
XmlException
UriFormatException
IndexOutOfRangeException
OutOfMemoryException
CryptographicException
AccessViolationException
NullReferenceException
XPathException
SecurityException
MissingMethodException
TargetInvocationException
NotSupportedException
ConfigurationErrorsException
FormatException
NotImplementedException
-
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.Throwable
ArgumentNullException
AccessViolationException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
OverflowException
CryptographicException
OutOfMemoryException
IndexOutOfRangeException
SecurityException
ApplicationException
NotSupportedException
NullReferenceException
-
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.Throwable
ArgumentNullException
MissingManifestResourceException
NotImplementedException
ArgumentException
ObjectDisposedException
InvalidOperationException
IOException
ArgumentOutOfRangeException
FileFormatException
XmlException
UriFormatException
IndexOutOfRangeException
OutOfMemoryException
NotSupportedException
SecurityException
CultureNotFoundException
-
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.Throwable
ArgumentNullException
MissingManifestResourceException
NotImplementedException
ArgumentException
ObjectDisposedException
InvalidOperationException
IOException
FileFormatException
XmlException
ArgumentOutOfRangeException
IndexOutOfRangeException
OutOfMemoryException
NotSupportedException
KeyNotFoundException
-
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.Throwable
ArgumentOutOfRangeException
-
getDefaultHashAlgorithm
public static java.lang.String getDefaultHashAlgorithm() throws java.lang.Throwable, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
-
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
-
-