org.bouncycastle.asn1.cms

Class SignerInfo

Implemented Interfaces:
DEREncodable

public class SignerInfo
extends ASN1Encodable

Constructor Summary

SignerInfo(ASN1Sequence seq)
SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, ASN1Set authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, ASN1OctetString encryptedDigest, ASN1Set unauthenticatedAttributes)

Method Summary

ASN1Set
getAuthenticatedAttributes()
AlgorithmIdentifier
getDigestAlgorithm()
AlgorithmIdentifier
getDigestEncryptionAlgorithm()
ASN1OctetString
getEncryptedDigest()
static SignerInfo
getInstance(Object o)
SignerIdentifier
getSID()
ASN1Set
getUnauthenticatedAttributes()
DERInteger
getVersion()
DERObject
toASN1Object()
Produce an object suitable for an ASN1OutputStream.

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDERObject, getEncoded, hashCode, toASN1Object

Constructor Details

SignerInfo

public SignerInfo(ASN1Sequence seq)


SignerInfo

public SignerInfo(SignerIdentifier sid,
                  AlgorithmIdentifier digAlgorithm,
                  ASN1Set authenticatedAttributes,
                  AlgorithmIdentifier digEncryptionAlgorithm,
                  ASN1OctetString encryptedDigest,
                  ASN1Set unauthenticatedAttributes)

Method Details

getAuthenticatedAttributes

public ASN1Set getAuthenticatedAttributes()


getDigestAlgorithm

public AlgorithmIdentifier getDigestAlgorithm()


getDigestEncryptionAlgorithm

public AlgorithmIdentifier getDigestEncryptionAlgorithm()


getEncryptedDigest

public ASN1OctetString getEncryptedDigest()


getInstance

public static SignerInfo getInstance(Object o)


getSID

public SignerIdentifier getSID()


getUnauthenticatedAttributes

public ASN1Set getUnauthenticatedAttributes()


getVersion

public DERInteger getVersion()


toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
  SignerInfo ::= SEQUENCE {
      version Version,
      SignerIdentifier sid,
      digestAlgorithm DigestAlgorithmIdentifier,
      authenticatedAttributes [0] IMPLICIT Attributes OPTIONAL,
      digestEncryptionAlgorithm DigestEncryptionAlgorithmIdentifier,
      encryptedDigest EncryptedDigest,
      unauthenticatedAttributes [1] IMPLICIT Attributes OPTIONAL
  }

  EncryptedDigest ::= OCTET STRING

  DigestAlgorithmIdentifier ::= AlgorithmIdentifier

  DigestEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier
 
Overrides:
toASN1Object in interface ASN1Encodable