Package org.bouncycastle.asn1.cms
Class AuthenticatedDataParser
- java.lang.Object
-
- org.bouncycastle.asn1.cms.AuthenticatedDataParser
-
public class AuthenticatedDataParser extends Object
ParseAuthenticatedData
stream.AuthenticatedData ::= SEQUENCE { version CMSVersion, originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL, recipientInfos RecipientInfos, macAlgorithm MessageAuthenticationCodeAlgorithm, digestAlgorithm [1] DigestAlgorithmIdentifier OPTIONAL, encapContentInfo EncapsulatedContentInfo, authAttrs [2] IMPLICIT AuthAttributes OPTIONAL, mac MessageAuthenticationCode, unauthAttrs [3] IMPLICIT UnauthAttributes OPTIONAL } AuthAttributes ::= SET SIZE (1..MAX) OF Attribute UnauthAttributes ::= SET SIZE (1..MAX) OF Attribute MessageAuthenticationCode ::= OCTET STRING
-
-
Constructor Summary
Constructors Constructor Description AuthenticatedDataParser(org.bouncycastle.asn1.ASN1SequenceParser seq)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.ASN1SetParser
getAuthAttrs()
org.bouncycastle.asn1.x509.AlgorithmIdentifier
getDigestAlgorithm()
ContentInfoParser
getEncapsulatedContentInfo()
org.bouncycastle.asn1.ASN1OctetString
getMac()
org.bouncycastle.asn1.x509.AlgorithmIdentifier
getMacAlgorithm()
OriginatorInfo
getOriginatorInfo()
org.bouncycastle.asn1.ASN1SetParser
getRecipientInfos()
org.bouncycastle.asn1.ASN1SetParser
getUnauthAttrs()
org.bouncycastle.asn1.ASN1Integer
getVersion()
-
-
-
Constructor Detail
-
AuthenticatedDataParser
public AuthenticatedDataParser(org.bouncycastle.asn1.ASN1SequenceParser seq) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getVersion
public org.bouncycastle.asn1.ASN1Integer getVersion()
-
getOriginatorInfo
public OriginatorInfo getOriginatorInfo() throws IOException
- Throws:
IOException
-
getRecipientInfos
public org.bouncycastle.asn1.ASN1SetParser getRecipientInfos() throws IOException
- Throws:
IOException
-
getMacAlgorithm
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getMacAlgorithm() throws IOException
- Throws:
IOException
-
getDigestAlgorithm
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithm() throws IOException
- Throws:
IOException
-
getEncapsulatedContentInfo
public ContentInfoParser getEncapsulatedContentInfo() throws IOException
- Throws:
IOException
-
getAuthAttrs
public org.bouncycastle.asn1.ASN1SetParser getAuthAttrs() throws IOException
- Throws:
IOException
-
getMac
public org.bouncycastle.asn1.ASN1OctetString getMac() throws IOException
- Throws:
IOException
-
getUnauthAttrs
public org.bouncycastle.asn1.ASN1SetParser getUnauthAttrs() throws IOException
- Throws:
IOException
-
-