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=9.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.String
assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Pkcs, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Security.Cryptography.Pkcsstatic java.lang.String
className
Qualified class name: System.Security.Cryptography.Pkcs.SignerInfostatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description SignerInfo()
SignerInfo(java.lang.Object instance)
Internal constructor.
-
Method Summary
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Pkcs, Version=9.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
-
-
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 SignerInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoSignerInfo
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
SignerInfo
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
GetSignature
public byte[] GetSignature() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
-
AddUnsignedAttribute
public void AddUnsignedAttribute(AsnEncodedData unsignedAttribute) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, ArrayTypeMismatchException, ArgumentException, CryptographicException, AsnContentException, RankException, NotSupportedException, CultureNotFoundException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
IndexOutOfRangeException
ArrayTypeMismatchException
ArgumentException
CryptographicException
AsnContentException
RankException
NotSupportedException
CultureNotFoundException
-
CheckHash
public void CheckHash() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, CryptographicException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidOperationException, AsnContentException, ArrayTypeMismatchException, OverflowException, ArgumentNullException, OutOfMemoryException, CultureNotFoundException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
PlatformNotSupportedException
CryptographicException
IndexOutOfRangeException
ArgumentOutOfRangeException
FormatException
InvalidOperationException
AsnContentException
ArrayTypeMismatchException
OverflowException
ArgumentNullException
OutOfMemoryException
CultureNotFoundException
-
CheckSignature
public void CheckSignature(boolean verifySignatureOnly) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CryptographicException, KeyNotFoundException, AsnContentException, OverflowException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
CryptographicException
KeyNotFoundException
AsnContentException
OverflowException
OutOfMemoryException
-
CheckSignature
public void CheckSignature(X509Certificate2Collection extraStore, boolean verifySignatureOnly) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, IndexOutOfRangeException, KeyNotFoundException, AsnContentException, OverflowException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
IndexOutOfRangeException
KeyNotFoundException
AsnContentException
OverflowException
OutOfMemoryException
-
ComputeCounterSignature
public void ComputeCounterSignature() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
ComputeCounterSignature
public void ComputeCounterSignature(CmsSigner signer) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, CryptographicException, IndexOutOfRangeException, ArrayTypeMismatchException, AsnContentException, MissingMethodException, TargetInvocationException, OverflowException, KeyNotFoundException, OutOfMemoryException, RankException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
CryptographicException
IndexOutOfRangeException
ArrayTypeMismatchException
AsnContentException
MissingMethodException
TargetInvocationException
OverflowException
KeyNotFoundException
OutOfMemoryException
RankException
InvalidCastException
-
RemoveCounterSignature
public void RemoveCounterSignature(int index) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, CryptographicException, AsnContentException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
IndexOutOfRangeException
CryptographicException
AsnContentException
-
RemoveCounterSignature
public void RemoveCounterSignature(SignerInfo counterSignerInfo) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, CryptographicException, AsnContentException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
IndexOutOfRangeException
CryptographicException
AsnContentException
-
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.Throwable
PlatformNotSupportedException
ArgumentOutOfRangeException
InvalidOperationException
ArgumentNullException
ArgumentException
CultureNotFoundException
ObjectDisposedException
CryptographicException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
InvalidCastException
AsnContentException
NotSupportedException
-
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.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
MissingMethodException
TargetInvocationException
CryptographicException
IndexOutOfRangeException
ArrayTypeMismatchException
ArgumentNullException
FormatException
-
-