Methods Summary |
---|
public org.bouncycastle.asn1.DEREncodable | getId()
return id;
|
public static org.bouncycastle.asn1.cms.OriginatorIdentifierOrKey | getInstance(org.bouncycastle.asn1.ASN1TaggedObject o, boolean explicit)return an OriginatorIdentifierOrKey object from a tagged object.
if (!explicit)
{
throw new IllegalArgumentException(
"Can't implicitly tag OriginatorIdentifierOrKey");
}
return getInstance(o.getObject());
|
public static org.bouncycastle.asn1.cms.OriginatorIdentifierOrKey | getInstance(java.lang.Object o)return an OriginatorIdentifierOrKey object from the given object.
if (o == null || o instanceof OriginatorIdentifierOrKey)
{
return (OriginatorIdentifierOrKey)o;
}
if (o instanceof DERObject)
{
return new OriginatorIdentifierOrKey((DERObject)o);
}
throw new IllegalArgumentException("Invalid OriginatorIdentifierOrKey: " + o.getClass().getName());
|
public org.bouncycastle.asn1.DERObject | toASN1Object()Produce an object suitable for an ASN1OutputStream.
OriginatorIdentifierOrKey ::= CHOICE {
issuerAndSerialNumber IssuerAndSerialNumber,
subjectKeyIdentifier [0] SubjectKeyIdentifier,
originatorKey [1] OriginatorPublicKey
}
SubjectKeyIdentifier ::= OCTET STRING
return id.getDERObject();
|