Class EnvelopedCms
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.cryptography.pkcs.EnvelopedCms
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class EnvelopedCms extends NetObject
The base .NET class managing System.Security.Cryptography.Pkcs.EnvelopedCms, System.Security.Cryptography.Pkcs, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.Pkcs.EnvelopedCms
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=8.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.EnvelopedCmsstatic org.mases.jcobridge.JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description EnvelopedCms()
EnvelopedCms(java.lang.Object instance)
Internal constructor.EnvelopedCms(ContentInfo contentInfo)
EnvelopedCms(ContentInfo contentInfo, AlgorithmIdentifier encryptionAlgorithm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnvelopedCms
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoEnvelopedCms
, a cast assert is made to check if types are compatible.void
Decode(byte[] encodedMessage)
void
Decode(JCORefOut dupParam0)
void
Decrypt()
void
Decrypt(RecipientInfo recipientInfo)
void
Decrypt(RecipientInfo recipientInfo, AsymmetricAlgorithm privateKey)
void
Decrypt(RecipientInfo recipientInfo, X509Certificate2Collection extraStore)
void
Decrypt(X509Certificate2Collection extraStore)
byte[]
Encode()
void
Encrypt(CmsRecipient recipient)
void
Encrypt(CmsRecipientCollection recipients)
X509Certificate2Collection
getCertificates()
AlgorithmIdentifier
getContentEncryptionAlgorithm()
ContentInfo
getContentInfo()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectorg.mases.jcobridge.JCType
getJCOType()
Returns the instantiated class TypeRecipientInfoCollection
getRecipientInfos()
CryptographicAttributeObjectCollection
getUnprotectedAttributes()
int
getVersion()
void
setCertificates(X509Certificate2Collection Certificates)
void
setContentEncryptionAlgorithm(AlgorithmIdentifier ContentEncryptionAlgorithm)
void
setContentInfo(ContentInfo ContentInfo)
void
setJCOInstance(org.mases.jcobridge.JCObject instance)
void
setUnprotectedAttributes(CryptographicAttributeObjectCollection UnprotectedAttributes)
void
setVersion(int Version)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Pkcs, Version=8.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.EnvelopedCms- See Also:
- Constant Field Values
-
classType
public static org.mases.jcobridge.JCType classType
The type managed from JCOBridge. SeeJCType
-
-
Constructor Detail
-
EnvelopedCms
public EnvelopedCms(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
EnvelopedCms
public EnvelopedCms() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentException, NotSupportedException
-
EnvelopedCms
public EnvelopedCms(ContentInfo contentInfo, AlgorithmIdentifier encryptionAlgorithm) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
EnvelopedCms
public EnvelopedCms(ContentInfo contentInfo) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
-
-
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(org.mases.jcobridge.JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public org.mases.jcobridge.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 EnvelopedCms cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoEnvelopedCms
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
EnvelopedCms
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Encode
public byte[] Encode() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
Decode
public void Decode(byte[] encodedMessage) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
Decode
public void Decode(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
Decrypt
public void Decrypt() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, CryptographicException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
CryptographicException
FormatException
-
Decrypt
public void Decrypt(RecipientInfo recipientInfo, AsymmetricAlgorithm privateKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
Decrypt
public void Decrypt(RecipientInfo recipientInfo, X509Certificate2Collection extraStore) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, CryptographicException
-
Decrypt
public void Decrypt(RecipientInfo recipientInfo) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, CryptographicException
-
Decrypt
public void Decrypt(X509Certificate2Collection extraStore) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, CryptographicException
-
Encrypt
public void Encrypt(CmsRecipient recipient) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
Encrypt
public void Encrypt(CmsRecipientCollection recipients) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
getVersion
public int getVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setVersion
public void setVersion(int Version) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getUnprotectedAttributes
public CryptographicAttributeObjectCollection getUnprotectedAttributes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setUnprotectedAttributes
public void setUnprotectedAttributes(CryptographicAttributeObjectCollection UnprotectedAttributes) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getContentEncryptionAlgorithm
public AlgorithmIdentifier getContentEncryptionAlgorithm() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setContentEncryptionAlgorithm
public void setContentEncryptionAlgorithm(AlgorithmIdentifier ContentEncryptionAlgorithm) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getContentInfo
public ContentInfo getContentInfo() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setContentInfo
public void setContentInfo(ContentInfo ContentInfo) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getRecipientInfos
public RecipientInfoCollection getRecipientInfos() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
getCertificates
public X509Certificate2Collection getCertificates() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCertificates
public void setCertificates(X509Certificate2Collection Certificates) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-