org.bouncycastle.asn1.pkcs

Class SignerInfo

public class SignerInfo extends ASN1Encodable

a PKCS#7 signer info object.
Constructor Summary
SignerInfo(DERInteger version, IssuerAndSerialNumber issuerAndSerialNumber, AlgorithmIdentifier digAlgorithm, ASN1Set authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, ASN1OctetString encryptedDigest, ASN1Set unauthenticatedAttributes)
SignerInfo(ASN1Sequence seq)
Method Summary
ASN1SetgetAuthenticatedAttributes()
AlgorithmIdentifiergetDigestAlgorithm()
AlgorithmIdentifiergetDigestEncryptionAlgorithm()
ASN1OctetStringgetEncryptedDigest()
static SignerInfogetInstance(Object o)
IssuerAndSerialNumbergetIssuerAndSerialNumber()
ASN1SetgetUnauthenticatedAttributes()
DERIntegergetVersion()
DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.

Constructor Detail

SignerInfo

public SignerInfo(DERInteger version, IssuerAndSerialNumber issuerAndSerialNumber, AlgorithmIdentifier digAlgorithm, ASN1Set authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, ASN1OctetString encryptedDigest, ASN1Set unauthenticatedAttributes)

SignerInfo

public SignerInfo(ASN1Sequence seq)

Method Detail

getAuthenticatedAttributes

public ASN1Set getAuthenticatedAttributes()

getDigestAlgorithm

public AlgorithmIdentifier getDigestAlgorithm()

getDigestEncryptionAlgorithm

public AlgorithmIdentifier getDigestEncryptionAlgorithm()

getEncryptedDigest

public ASN1OctetString getEncryptedDigest()

getInstance

public static SignerInfo getInstance(Object o)

getIssuerAndSerialNumber

public IssuerAndSerialNumber getIssuerAndSerialNumber()

getUnauthenticatedAttributes

public ASN1Set getUnauthenticatedAttributes()

getVersion

public DERInteger getVersion()

toASN1Object

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

  EncryptedDigest ::= OCTET STRING

  DigestAlgorithmIdentifier ::= AlgorithmIdentifier

  DigestEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier