public class SignedCms extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.Pkcs.SignedCms
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Pkcs, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Security.Cryptography.Pkcs
|
static java.lang.String |
className
Qualified class name: System.Security.Cryptography.Pkcs.SignedCms
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
SignedCms() |
SignedCms(ContentInfo contentInfo) |
SignedCms(ContentInfo contentInfo,
boolean detached) |
SignedCms(java.lang.Object instance)
Internal constructor.
|
SignedCms(SubjectIdentifierType signerIdentifierType) |
SignedCms(SubjectIdentifierType signerIdentifierType,
ContentInfo contentInfo) |
SignedCms(SubjectIdentifierType signerIdentifierType,
ContentInfo contentInfo,
boolean detached) |
| Modifier and Type | Method and Description |
|---|---|
void |
AddCertificate(X509Certificate2 certificate) |
static SignedCms |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into SignedCms, a cast assert is made to check if types are compatible. |
void |
CheckHash() |
void |
CheckSignature(boolean verifySignatureOnly) |
void |
CheckSignature(X509Certificate2Collection extraStore,
boolean verifySignatureOnly) |
void |
ComputeSignature() |
void |
ComputeSignature(CmsSigner signer) |
void |
ComputeSignature(CmsSigner signer,
boolean silent) |
void |
Decode(byte[] encodedMessage) |
void |
Decode(JCORefOut dupParam0) |
byte[] |
Encode() |
X509Certificate2Collection |
getCertificates() |
ContentInfo |
getContentInfo() |
boolean |
getDetached() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
SignerInfoCollection |
getSignerInfos() |
int |
getVersion() |
void |
RemoveCertificate(X509Certificate2 certificate) |
void |
RemoveSignature(int index) |
void |
RemoveSignature(SignerInfo signerInfo) |
void |
setContentInfo(ContentInfo ContentInfo) |
void |
setDetached(boolean Detached) |
void |
setJCOInstance(JCObject instance) |
void |
setVersion(int Version) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public SignedCms()
throws java.lang.Throwable,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
OutOfMemoryException,
ArgumentException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException
public SignedCms(ContentInfo contentInfo) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public SignedCms(ContentInfo contentInfo, boolean detached) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public SignedCms(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic SignedCms(SubjectIdentifierType signerIdentifierType) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
public SignedCms(SubjectIdentifierType signerIdentifierType, ContentInfo contentInfo) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public SignedCms(SubjectIdentifierType signerIdentifierType, ContentInfo contentInfo, boolean detached) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
public void AddCertificate(X509Certificate2 certificate) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, CryptographicException, NotSupportedException, OverflowException, ArgumentNullException, AsnContentException, OutOfMemoryException, CultureNotFoundException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionCryptographicExceptionNotSupportedExceptionOverflowExceptionArgumentNullExceptionAsnContentExceptionOutOfMemoryExceptionCultureNotFoundExceptionpublic static SignedCms cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into SignedCms, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedSignedCms instancejava.lang.Throwable - in case of error during cast operationpublic void CheckHash()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
ArrayTypeMismatchException,
CryptographicException,
AsnContentException,
OverflowException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionCryptographicExceptionAsnContentExceptionOverflowExceptionpublic void CheckSignature(boolean verifySignatureOnly)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
ObjectDisposedException,
IndexOutOfRangeException,
ArrayTypeMismatchException,
CryptographicException,
AsnContentException,
RankException,
KeyNotFoundException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionCryptographicExceptionAsnContentExceptionRankExceptionKeyNotFoundExceptionpublic void CheckSignature(X509Certificate2Collection extraStore, boolean verifySignatureOnly) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArrayTypeMismatchException, CryptographicException, AsnContentException, KeyNotFoundException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionCryptographicExceptionAsnContentExceptionKeyNotFoundExceptionpublic void ComputeSignature()
throws java.lang.Throwable,
ArgumentException,
InvalidOperationException,
ArgumentNullException,
CryptographicException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
FormatException,
ArrayTypeMismatchException,
NotSupportedException,
RankException,
OverflowException,
AsnContentException,
KeyNotFoundException,
OutOfMemoryException,
CultureNotFoundException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionArgumentNullExceptionCryptographicExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionArrayTypeMismatchExceptionNotSupportedExceptionRankExceptionOverflowExceptionAsnContentExceptionKeyNotFoundExceptionOutOfMemoryExceptionCultureNotFoundExceptionpublic void ComputeSignature(CmsSigner signer) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CryptographicException, FormatException, OverflowException, AsnContentException, KeyNotFoundException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionCryptographicExceptionFormatExceptionOverflowExceptionAsnContentExceptionKeyNotFoundExceptionOutOfMemoryExceptionpublic void ComputeSignature(CmsSigner signer, boolean silent) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException, OverflowException, AsnContentException, OutOfMemoryException, KeyNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionCryptographicExceptionIndexOutOfRangeExceptionMissingMethodExceptionTargetInvocationExceptionOverflowExceptionAsnContentExceptionOutOfMemoryExceptionKeyNotFoundExceptionpublic void Decode(byte[] encodedMessage)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
AsnContentException,
CryptographicException,
OutOfMemoryException,
ExternalException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionAsnContentExceptionCryptographicExceptionOutOfMemoryExceptionExternalExceptionpublic void Decode(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, AsnContentException, CryptographicException, OutOfMemoryException, ExternalException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionAsnContentExceptionCryptographicExceptionOutOfMemoryExceptionExternalExceptionpublic byte[] Encode()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
OverflowException,
IndexOutOfRangeException,
CryptographicException,
AsnContentException,
OutOfMemoryException,
RankException,
ArrayTypeMismatchException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionOverflowExceptionIndexOutOfRangeExceptionCryptographicExceptionAsnContentExceptionOutOfMemoryExceptionRankExceptionArrayTypeMismatchExceptionpublic X509Certificate2Collection getCertificates() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException, FormatException, CryptographicException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionCryptographicExceptionpublic ContentInfo getContentInfo() throws java.lang.Throwable
java.lang.Throwablepublic boolean getDetached()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic SignerInfoCollection getSignerInfos() throws java.lang.Throwable, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ArgumentException, CryptographicException, AsnContentException
public int getVersion()
throws java.lang.Throwable
java.lang.Throwablepublic void RemoveCertificate(X509Certificate2 certificate) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, CryptographicException, NotSupportedException, ArgumentNullException, RankException, ArrayTypeMismatchException, InvalidCastException, OverflowException, AsnContentException, OutOfMemoryException, CultureNotFoundException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionCryptographicExceptionNotSupportedExceptionArgumentNullExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionOverflowExceptionAsnContentExceptionOutOfMemoryExceptionCultureNotFoundExceptionpublic void RemoveSignature(int index)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
RankException,
ArrayTypeMismatchException,
InvalidCastException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionpublic void RemoveSignature(SignerInfo signerInfo) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, CryptographicException, AsnContentException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionCryptographicExceptionAsnContentExceptionpublic void setContentInfo(ContentInfo ContentInfo) throws java.lang.Throwable
java.lang.Throwablepublic void setDetached(boolean Detached)
throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void setVersion(int Version)
throws java.lang.Throwable
java.lang.Throwable