|
Bouncy Castle Cryptography Library 1.79 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.EnvelopedData
RFC 5652 EnvelopedData object. EnvelopedData ::= SEQUENCE { version CMSVersion, originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL, recipientInfos RecipientInfos, encryptedContentInfo EncryptedContentInfo, unprotectedAttrs [1] IMPLICIT UnprotectedAttributes OPTIONAL }
Constructor Summary | |
EnvelopedData(OriginatorInfo originatorInfo,
org.bouncycastle.asn1.ASN1Set recipientInfos,
EncryptedContentInfo encryptedContentInfo,
org.bouncycastle.asn1.ASN1Set unprotectedAttrs)
|
|
EnvelopedData(OriginatorInfo originatorInfo,
org.bouncycastle.asn1.ASN1Set recipientInfos,
EncryptedContentInfo encryptedContentInfo,
Attributes unprotectedAttrs)
|
Method Summary | |
static int |
calculateVersion(OriginatorInfo originatorInfo,
org.bouncycastle.asn1.ASN1Set recipientInfos,
org.bouncycastle.asn1.ASN1Set unprotectedAttrs)
|
EncryptedContentInfo |
getEncryptedContentInfo()
|
static EnvelopedData |
getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj,
boolean explicit)
Return an EnvelopedData object from a tagged object. |
static EnvelopedData |
getInstance(java.lang.Object obj)
Return an EnvelopedData object from the given object. |
OriginatorInfo |
getOriginatorInfo()
|
org.bouncycastle.asn1.ASN1Set |
getRecipientInfos()
|
org.bouncycastle.asn1.ASN1Set |
getUnprotectedAttrs()
|
org.bouncycastle.asn1.ASN1Integer |
getVersion()
|
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream. |
Methods inherited from class org.bouncycastle.asn1.ASN1Object |
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EnvelopedData(OriginatorInfo originatorInfo, org.bouncycastle.asn1.ASN1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, org.bouncycastle.asn1.ASN1Set unprotectedAttrs)
public EnvelopedData(OriginatorInfo originatorInfo, org.bouncycastle.asn1.ASN1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, Attributes unprotectedAttrs)
Method Detail |
public static EnvelopedData getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)
obj
- the tagged object holding the object we want.explicit
- true if the object is meant to be explicitly
tagged false otherwise.
java.lang.IllegalArgumentException
- if the object held by the
tagged object cannot be converted.public static EnvelopedData getInstance(java.lang.Object obj)
Accepted inputs:
null → null
EnvelopedData
object
ASN1Sequence
input formats with EnvelopedData structure inside
obj
- the object we want converted.
java.lang.IllegalArgumentException
- if the object cannot be converted.public org.bouncycastle.asn1.ASN1Integer getVersion()
public OriginatorInfo getOriginatorInfo()
public org.bouncycastle.asn1.ASN1Set getRecipientInfos()
public EncryptedContentInfo getEncryptedContentInfo()
public org.bouncycastle.asn1.ASN1Set getUnprotectedAttrs()
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
public static int calculateVersion(OriginatorInfo originatorInfo, org.bouncycastle.asn1.ASN1Set recipientInfos, org.bouncycastle.asn1.ASN1Set unprotectedAttrs)
|
Bouncy Castle Cryptography Library 1.79 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |