AuthenticatedDataParser (Bouncy Castle Library 1.54 API Specification)
Date: 2015-12-29

org.bouncycastle.asn1.cms

## Class AuthenticatedDataParser

- java.lang.Object
- - org.bouncycastle.asn1.cms.AuthenticatedDataParser

-     public class AuthenticatedDataParser
      extends java.lang.Object

  Parse `AuthenticatedData` 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 and Description
    `AuthenticatedDataParser(ASN1SequenceParser seq)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ASN1SetParser` | `getAuthAttrs()`
    `AlgorithmIdentifier` | `getDigestAlgorithm()`
    `ContentInfoParser` | `getEnapsulatedContentInfo()` Deprecated. use getEncapsulatedContentInfo()
    `ContentInfoParser` | `getEncapsulatedContentInfo()`
    `ASN1OctetString` | `getMac()`
    `AlgorithmIdentifier` | `getMacAlgorithm()`
    `OriginatorInfo` | `getOriginatorInfo()`
    `ASN1SetParser` | `getRecipientInfos()`
    `ASN1SetParser` | `getUnauthAttrs()`
    `ASN1Integer` | `getVersion()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AuthenticatedDataParser

          public AuthenticatedDataParser(ASN1SequenceParser seq)
                                  throws java.io.IOException

      Throws:
        `java.io.IOException`

  - ### Method Detail

    - #### getVersion

          public ASN1Integer getVersion()

    - #### getOriginatorInfo

          public OriginatorInfo getOriginatorInfo()
                                           throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### getRecipientInfos

          public ASN1SetParser getRecipientInfos()
                                          throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### getMacAlgorithm

          public AlgorithmIdentifier getMacAlgorithm()
                                              throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### getDigestAlgorithm

          public AlgorithmIdentifier getDigestAlgorithm()
                                                 throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### getEnapsulatedContentInfo

          public ContentInfoParser getEnapsulatedContentInfo()
                                                      throws java.io.IOException

      Deprecated. use getEncapsulatedContentInfo()
      Throws:
        `java.io.IOException`

    - #### getEncapsulatedContentInfo

          public ContentInfoParser getEncapsulatedContentInfo()
                                                       throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### getAuthAttrs

          public ASN1SetParser getAuthAttrs()
                                     throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### getMac

          public ASN1OctetString getMac()
                                 throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### getUnauthAttrs

          public ASN1SetParser getUnauthAttrs()
                                       throws java.io.IOException

      Throws:
        `java.io.IOException`