Package org.bouncycastle.asn1.pkcs
Class EncryptedData
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.pkcs.EncryptedData
- All Implemented Interfaces:
ASN1Encodable
public class EncryptedData extends ASN1Object
The EncryptedData object.
EncryptedData ::= SEQUENCE {
version Version,
encryptedContentInfo EncryptedContentInfo
}
EncryptedContentInfo ::= SEQUENCE {
contentType ContentType,
contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL
}
EncryptedContent ::= OCTET STRING
-
Constructor Summary
Constructors Constructor Description EncryptedData(ASN1ObjectIdentifier contentType, AlgorithmIdentifier encryptionAlgorithm, ASN1Encodable content) -
Method Summary
Modifier and Type Method Description ASN1OctetStringgetContent()ASN1ObjectIdentifiergetContentType()AlgorithmIdentifiergetEncryptionAlgorithm()static EncryptedDatagetInstance(Object obj)ASN1PrimitivetoASN1Primitive()Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
-
Constructor Details
-
EncryptedData
public EncryptedData(ASN1ObjectIdentifier contentType, AlgorithmIdentifier encryptionAlgorithm, ASN1Encodable content)
-
-
Method Details
-
getInstance
-
getContentType
-
getEncryptionAlgorithm
-
getContent
-
toASN1Primitive
- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object
-