Bouncy Castle Cryptography Library 1.48

org.bouncycastle.asn1.cms
Class SignerInfo

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Object
      extended by org.bouncycastle.asn1.cms.SignerInfo
All Implemented Interfaces:
ASN1Encodable

public class SignerInfo
extends ASN1Object


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(java.lang.Object o)
           
 SignerIdentifier getSID()
           
 ASN1Set getUnauthenticatedAttributes()
           
 ASN1Integer getVersion()
           
 ASN1Primitive toASN1Primitive()
          Produce an object suitable for an ASN1OutputStream.
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignerInfo

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

SignerInfo

public SignerInfo(ASN1Sequence seq)
Method Detail

getInstance

public static SignerInfo getInstance(java.lang.Object o)
                              throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getVersion

public ASN1Integer getVersion()

getSID

public SignerIdentifier getSID()

getAuthenticatedAttributes

public ASN1Set getAuthenticatedAttributes()

getDigestAlgorithm

public AlgorithmIdentifier getDigestAlgorithm()

getEncryptedDigest

public ASN1OctetString getEncryptedDigest()

getDigestEncryptionAlgorithm

public AlgorithmIdentifier getDigestEncryptionAlgorithm()

getUnauthenticatedAttributes

public ASN1Set getUnauthenticatedAttributes()

toASN1Primitive

public ASN1Primitive toASN1Primitive()
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
 

Specified by:
toASN1Primitive in interface ASN1Encodable
Specified by:
toASN1Primitive in class ASN1Object

Bouncy Castle Cryptography Library 1.48