public class EncryptedContentInfo extends ASN1Encodable
BER, DER
Constructor and Description |
---|
EncryptedContentInfo(ASN1Sequence seq) |
EncryptedContentInfo(DERObjectIdentifier contentType,
AlgorithmIdentifier contentEncryptionAlgorithm,
ASN1OctetString encryptedContent) |
Modifier and Type | Method and Description |
---|---|
AlgorithmIdentifier |
getContentEncryptionAlgorithm() |
DERObjectIdentifier |
getContentType() |
ASN1OctetString |
getEncryptedContent() |
static EncryptedContentInfo |
getInstance(Object obj)
return an EncryptedContentInfo object from the given object.
|
DERObject |
toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
public EncryptedContentInfo(DERObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, ASN1OctetString encryptedContent)
public EncryptedContentInfo(ASN1Sequence seq)
public static EncryptedContentInfo getInstance(Object obj)
obj
- the object we want converted.IllegalArgumentException
- if the object cannot be converted.public DERObjectIdentifier getContentType()
public AlgorithmIdentifier getContentEncryptionAlgorithm()
public ASN1OctetString getEncryptedContent()
public DERObject toASN1Object()
EncryptedContentInfo ::= SEQUENCE { contentType ContentType, contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier, encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL }
toASN1Object
in class ASN1Encodable
Copyright © 2015. All rights reserved.