Methods Summary |
---|
public org.bouncycastle.asn1.DEREncodable | getId()
if (id instanceof ASN1TaggedObject)
{
return ASN1OctetString.getInstance((ASN1TaggedObject)id, false);
}
return id;
|
public static org.bouncycastle.asn1.cms.SignerIdentifier | getInstance(java.lang.Object o)return a SignerIdentifier object from the given object.
if (o == null || o instanceof SignerIdentifier)
{
return (SignerIdentifier)o;
}
if (o instanceof IssuerAndSerialNumber)
{
return new SignerIdentifier((IssuerAndSerialNumber)o);
}
if (o instanceof ASN1OctetString)
{
return new SignerIdentifier((ASN1OctetString)o);
}
if (o instanceof DERObject)
{
return new SignerIdentifier((DERObject)o);
}
throw new IllegalArgumentException(
"Illegal object in SignerIdentifier: " + o.getClass().getName());
|
public boolean | isTagged()
return (id instanceof ASN1TaggedObject);
|
public org.bouncycastle.asn1.DERObject | toASN1Object()Produce an object suitable for an ASN1OutputStream.
SignerIdentifier ::= CHOICE {
issuerAndSerialNumber IssuerAndSerialNumber,
subjectKeyIdentifier [0] SubjectKeyIdentifier
}
SubjectKeyIdentifier ::= OCTET STRING
return id.getDERObject();
|