Bouncy Castle Cryptography Library 1.81

org.bouncycastle.asn1.cms
Class SignerIdentifier

java.lang.Object
  extended byorg.bouncycastle.asn1.ASN1Object
      extended byorg.bouncycastle.asn1.cms.SignerIdentifier
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Choice, org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class SignerIdentifier
extends org.bouncycastle.asn1.ASN1Object
implements org.bouncycastle.asn1.ASN1Choice

RFC 5652: Identify who signed the containing SignerInfo object.

The certificates referred to by this are at containing SignedData structure.

SignerIdentifier ::= CHOICE { issuerAndSerialNumber IssuerAndSerialNumber, subjectKeyIdentifier [0] SubjectKeyIdentifier } SubjectKeyIdentifier ::= OCTET STRING


Constructor Summary
SignerIdentifier(org.bouncycastle.asn1.ASN1OctetString id)
           
SignerIdentifier(org.bouncycastle.asn1.ASN1Primitive id)
           
SignerIdentifier(IssuerAndSerialNumber id)
           
 
Method Summary
 org.bouncycastle.asn1.ASN1Encodable getId()
           
static SignerIdentifier getInstance(java.lang.Object o)
          Return a SignerIdentifier object from the given object.
 boolean isTagged()
           
 org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
          Produce an object suitable for an ASN1OutputStream.
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignerIdentifier

public SignerIdentifier(IssuerAndSerialNumber id)

SignerIdentifier

public SignerIdentifier(org.bouncycastle.asn1.ASN1OctetString id)

SignerIdentifier

public SignerIdentifier(org.bouncycastle.asn1.ASN1Primitive id)
Method Detail

getInstance

public static SignerIdentifier getInstance(java.lang.Object o)
Return a SignerIdentifier object from the given object.

Accepted inputs: null → null SignerIdentifier object IssuerAndSerialNumber object ASN1OctetString input formats with SignerIdentifier structure inside ASN1Primitive for SignerIdentifier constructor.

Parameters:
o - the object we want converted.
Throws:
java.lang.IllegalArgumentException - if the object cannot be converted.

isTagged

public boolean isTagged()

getId

public org.bouncycastle.asn1.ASN1Encodable getId()

toASN1Primitive

public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.

Specified by:
toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable

Bouncy Castle Cryptography Library 1.81