Class SignerInfo
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.cryptography.pkcs.SignerInfo
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class SignerInfo extends NetObject
The base .NET class managing System.Security.Cryptography.Pkcs.SignerInfo, System.Security.Cryptography.Pkcs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.Pkcs.SignerInfo
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: System.Security.Cryptography.Pkcs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Security.Cryptography.Pkcsstatic java.lang.StringclassNameQualified class name: System.Security.Cryptography.Pkcs.SignerInfostatic org.mases.jcobridge.JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description SignerInfo()SignerInfo(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidAddUnsignedAttribute(AsnEncodedData unsignedAttribute)static SignerInfocast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoSignerInfo, a cast assert is made to check if types are compatible.voidCheckHash()voidCheckSignature(boolean verifySignatureOnly)voidCheckSignature(X509Certificate2Collection extraStore, boolean verifySignatureOnly)voidComputeCounterSignature()voidComputeCounterSignature(CmsSigner signer)X509Certificate2getCertificate()SignerInfoCollectiongetCounterSignerInfos()OidgetDigestAlgorithm()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 objectorg.mases.jcobridge.JCTypegetJCOType()Returns the instantiated class Typebyte[]GetSignature()OidgetSignatureAlgorithm()CryptographicAttributeObjectCollectiongetSignedAttributes()SubjectIdentifiergetSignerIdentifier()CryptographicAttributeObjectCollectiongetUnsignedAttributes()intgetVersion()voidRemoveCounterSignature(int index)voidRemoveCounterSignature(SignerInfo counterSignerInfo)voidRemoveUnsignedAttribute(AsnEncodedData unsignedAttribute)voidsetJCOInstance(org.mases.jcobridge.JCObject instance)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Pkcs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Security.Cryptography.Pkcs- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Security.Cryptography.Pkcs.SignerInfo- See Also:
- Constant Field Values
-
classType
public static org.mases.jcobridge.JCType classType
The type managed from JCOBridge. SeeJCType
-
-
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(org.mases.jcobridge.JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public org.mases.jcobridge.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 SignerInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoSignerInfo, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
SignerInfoinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
GetSignature
public byte[] GetSignature() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionArgumentOutOfRangeException
-
AddUnsignedAttribute
public void AddUnsignedAttribute(AsnEncodedData unsignedAttribute) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, ArrayTypeMismatchException, CryptographicException, AsnContentException, CultureNotFoundException
-
CheckHash
public void CheckHash() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, CryptographicException, InvalidOperationException, AsnContentException, ArrayTypeMismatchException, IndexOutOfRangeException, OverflowException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionCryptographicExceptionInvalidOperationExceptionAsnContentExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionOverflowException
-
CheckSignature
public void CheckSignature(boolean verifySignatureOnly) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, CryptographicException, IndexOutOfRangeException, KeyNotFoundException, AsnContentException, OverflowException, OutOfMemoryException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionCryptographicExceptionIndexOutOfRangeExceptionKeyNotFoundExceptionAsnContentExceptionOverflowExceptionOutOfMemoryException
-
CheckSignature
public void CheckSignature(X509Certificate2Collection extraStore, boolean verifySignatureOnly) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException, IndexOutOfRangeException, KeyNotFoundException, AsnContentException, OverflowException, OutOfMemoryException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionCryptographicExceptionIndexOutOfRangeExceptionKeyNotFoundExceptionAsnContentExceptionOverflowExceptionOutOfMemoryException
-
ComputeCounterSignature
public void ComputeCounterSignature() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
ComputeCounterSignature
public void ComputeCounterSignature(CmsSigner signer) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, CryptographicException, IndexOutOfRangeException, ArrayTypeMismatchException, AsnContentException, OverflowException, KeyNotFoundException, OutOfMemoryException, RankException, InvalidCastException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionCryptographicExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionAsnContentExceptionOverflowExceptionKeyNotFoundExceptionOutOfMemoryExceptionRankExceptionInvalidCastException
-
RemoveCounterSignature
public void RemoveCounterSignature(int index) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, CryptographicException, AsnContentException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionCryptographicExceptionAsnContentException
-
RemoveCounterSignature
public void RemoveCounterSignature(SignerInfo counterSignerInfo) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, CryptographicException, AsnContentException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionCryptographicExceptionAsnContentException
-
RemoveUnsignedAttribute
public void RemoveUnsignedAttribute(AsnEncodedData unsignedAttribute) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, CryptographicException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException, AsnContentException, NotSupportedException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionObjectDisposedExceptionCryptographicExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionAsnContentExceptionNotSupportedException
-
getVersion
public int getVersion() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getSignedAttributes
public CryptographicAttributeObjectCollection getSignedAttributes() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, CultureNotFoundException
-
getUnsignedAttributes
public CryptographicAttributeObjectCollection getUnsignedAttributes() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, CultureNotFoundException
-
getDigestAlgorithm
public Oid getDigestAlgorithm() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSignatureAlgorithm
public Oid getSignatureAlgorithm() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCounterSignerInfos
public SignerInfoCollection getCounterSignerInfos() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, AsnContentException, ArgumentException, InvalidOperationException, CryptographicException, ArrayTypeMismatchException
-
getSignerIdentifier
public SubjectIdentifier getSignerIdentifier() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCertificate
public X509Certificate2 getCertificate() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, MissingMethodException, TargetInvocationException, CryptographicException, IndexOutOfRangeException, ArrayTypeMismatchException, ArgumentNullException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionMissingMethodExceptionTargetInvocationExceptionCryptographicExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionArgumentNullExceptionFormatException
-
-