Methods Summary |
---|
public org.bouncycastle.asn1.DERGeneralizedTime | getDate()
return date;
|
public static org.bouncycastle.asn1.cms.RecipientKeyIdentifier | getInstance(org.bouncycastle.asn1.ASN1TaggedObject _ato, boolean _explicit)return a RecipientKeyIdentifier object from a tagged object.
return getInstance(ASN1Sequence.getInstance(_ato, _explicit));
|
public static org.bouncycastle.asn1.cms.RecipientKeyIdentifier | getInstance(java.lang.Object _obj)return a RecipientKeyIdentifier object from the given object.
if(_obj == null || _obj instanceof RecipientKeyIdentifier)
{
return (RecipientKeyIdentifier)_obj;
}
if(_obj instanceof ASN1Sequence)
{
return new RecipientKeyIdentifier((ASN1Sequence)_obj);
}
throw new IllegalArgumentException("Invalid RecipientKeyIdentifier: " + _obj.getClass().getName());
|
public OtherKeyAttribute | getOtherKeyAttribute()
return other;
|
public org.bouncycastle.asn1.ASN1OctetString | getSubjectKeyIdentifier()
return subjectKeyIdentifier;
|
public org.bouncycastle.asn1.DERObject | toASN1Object()Produce an object suitable for an ASN1OutputStream.
RecipientKeyIdentifier ::= SEQUENCE {
subjectKeyIdentifier SubjectKeyIdentifier,
date GeneralizedTime OPTIONAL,
other OtherKeyAttribute OPTIONAL
}
SubjectKeyIdentifier ::= OCTET STRING
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(subjectKeyIdentifier);
if (date != null)
{
v.add(date);
}
if (other != null)
{
v.add(other);
}
return new DERSequence(v);
|