public class EnvelopedCms extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Security.Cryptography.Pkcs.EnvelopedCms
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.EnvelopedCms
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
EnvelopedCms()
Initializes a new instance by invoking the .NET constructor.
|
EnvelopedCms(ContentInfo contentInfo)
Initializes a new instance by invoking the .NET constructor.
|
EnvelopedCms(ContentInfo contentInfo,
AlgorithmIdentifier encryptionAlgorithm)
Initializes a new instance by invoking the .NET constructor.
|
EnvelopedCms(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static EnvelopedCms |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into EnvelopedCms, a cast assert is made to check if types are compatible. |
void |
Decode(byte[] encodedMessage)
Invokes the .NET member Decode.
|
void |
Decode(JCORefOut dupParam0)
Invokes the .NET member Decode.
|
void |
Decrypt()
Invokes the .NET member Decrypt.
|
void |
Decrypt(RecipientInfo recipientInfo)
Invokes the .NET member Decrypt.
|
void |
Decrypt(RecipientInfo recipientInfo,
AsymmetricAlgorithm privateKey)
Invokes the .NET member Decrypt.
|
void |
Decrypt(RecipientInfo recipientInfo,
X509Certificate2Collection extraStore)
Invokes the .NET member Decrypt.
|
void |
Decrypt(X509Certificate2Collection extraStore)
Invokes the .NET member Decrypt.
|
byte[] |
Encode()
Invokes the .NET member Encode.
|
void |
Encrypt(CmsRecipient recipient)
Invokes the .NET member Encrypt.
|
void |
Encrypt(CmsRecipientCollection recipients)
Invokes the .NET member Encrypt.
|
X509Certificate2Collection |
getCertificates()
Gets the value of the .NET property Certificates.
|
AlgorithmIdentifier |
getContentEncryptionAlgorithm()
Gets the value of the .NET property ContentEncryptionAlgorithm.
|
ContentInfo |
getContentInfo()
Gets the value of the .NET property ContentInfo.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
RecipientInfoCollection |
getRecipientInfos()
Gets the value of the .NET property RecipientInfos.
|
CryptographicAttributeObjectCollection |
getUnprotectedAttributes()
Gets the value of the .NET property UnprotectedAttributes.
|
int |
getVersion()
Gets the value of the .NET property Version.
|
void |
setCertificates(X509Certificate2Collection Certificates)
Sets the value of the .NET property Certificates.
|
void |
setContentEncryptionAlgorithm(AlgorithmIdentifier ContentEncryptionAlgorithm)
Sets the value of the .NET property ContentEncryptionAlgorithm.
|
void |
setContentInfo(ContentInfo ContentInfo)
Sets the value of the .NET property ContentInfo.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setUnprotectedAttributes(CryptographicAttributeObjectCollection UnprotectedAttributes)
Sets the value of the .NET property UnprotectedAttributes.
|
void |
setVersion(int Version)
Sets the value of the .NET property Version.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public EnvelopedCms()
throws java.lang.Throwable,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
OutOfMemoryException,
ArgumentException,
NotSupportedException
java.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic EnvelopedCms(ContentInfo contentInfo) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
contentInfo - the argument of type ContentInfojava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic EnvelopedCms(ContentInfo contentInfo, AlgorithmIdentifier encryptionAlgorithm) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
contentInfo - the argument of type ContentInfoencryptionAlgorithm - the argument of type AlgorithmIdentifierjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic EnvelopedCms(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static EnvelopedCms cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into EnvelopedCms, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedEnvelopedCms instancejava.lang.Throwable - in case of error during cast operationpublic void Decode(byte[] encodedMessage)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException
encodedMessage - the argument of type byte[]java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void Decode(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
dupParam0 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void Decrypt()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
CryptographicException,
FormatException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itFormatException - if the .NET member raises itpublic void Decrypt(RecipientInfo recipientInfo) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, CryptographicException
recipientInfo - the argument of type RecipientInfojava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void Decrypt(RecipientInfo recipientInfo, AsymmetricAlgorithm privateKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
recipientInfo - the argument of type RecipientInfoprivateKey - the argument of type AsymmetricAlgorithmjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void Decrypt(RecipientInfo recipientInfo, X509Certificate2Collection extraStore) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, CryptographicException
recipientInfo - the argument of type RecipientInfoextraStore - the argument of type X509Certificate2Collectionjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void Decrypt(X509Certificate2Collection extraStore) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, CryptographicException
extraStore - the argument of type X509Certificate2Collectionjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic byte[] Encode()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void Encrypt(CmsRecipient recipient) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
recipient - the argument of type CmsRecipientjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void Encrypt(CmsRecipientCollection recipients) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
recipients - the argument of type CmsRecipientCollectionjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic X509Certificate2Collection getCertificates() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic AlgorithmIdentifier getContentEncryptionAlgorithm() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ContentInfo getContentInfo() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic RecipientInfoCollection getRecipientInfos() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic CryptographicAttributeObjectCollection getUnprotectedAttributes() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getVersion()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setCertificates(X509Certificate2Collection Certificates) throws java.lang.Throwable
Certificates - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setContentEncryptionAlgorithm(AlgorithmIdentifier ContentEncryptionAlgorithm) throws java.lang.Throwable
ContentEncryptionAlgorithm - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setContentInfo(ContentInfo ContentInfo) throws java.lang.Throwable
ContentInfo - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setUnprotectedAttributes(CryptographicAttributeObjectCollection UnprotectedAttributes) throws java.lang.Throwable
UnprotectedAttributes - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setVersion(int Version)
throws java.lang.Throwable
Version - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLR