Top Description Fields Constructors Methods
org.bouncycastle.asn1.cms

public Class SignerIdentifier

extends ASN1Object
implements ASN1Choice
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.ASN1Choice
Imports
org.bouncycastle.asn1.ASN1Choice, .ASN1Encodable, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1TaggedObject, .DERTaggedObject

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

Field Summary

Modifier and TypeField and Description
private ASN1Encodable

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public ASN1Encodable
public static SignerIdentifier
getInstance(Object
the object we want converted.
o
)

Return a SignerIdentifier object from the given object.

public boolean
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

idback to summary
private ASN1Encodable id

Constructor Detail

SignerIdentifierback to summary
public SignerIdentifier(IssuerAndSerialNumber id)
SignerIdentifierback to summary
public SignerIdentifier(ASN1OctetString id)
SignerIdentifierback to summary
public SignerIdentifier(ASN1Primitive id)

Method Detail

getIdback to summary
public ASN1Encodable getId()
getInstanceback to summary
public static SignerIdentifier getInstance(Object o)

Return a SignerIdentifier object from the given object.

Accepted inputs:

Parameters
o:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
isTaggedback to summary
public boolean isTagged()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.