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