Methods Summary |
---|
public static org.bouncycastle.asn1.cms.OtherKeyAttribute | getInstance(java.lang.Object o)return an OtherKeyAttribute object from the given object.
if (o == null || o instanceof OtherKeyAttribute)
{
return (OtherKeyAttribute)o;
}
if (o instanceof ASN1Sequence)
{
return new OtherKeyAttribute((ASN1Sequence)o);
}
throw new IllegalArgumentException("unknown object in factory");
|
public org.bouncycastle.asn1.DEREncodable | getKeyAttr()
return keyAttr;
|
public org.bouncycastle.asn1.DERObjectIdentifier | getKeyAttrId()
return keyAttrId;
|
public org.bouncycastle.asn1.DERObject | toASN1Object()Produce an object suitable for an ASN1OutputStream.
OtherKeyAttribute ::= SEQUENCE {
keyAttrId OBJECT IDENTIFIER,
keyAttr ANY DEFINED BY keyAttrId OPTIONAL
}
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(keyAttrId);
v.add(keyAttr);
return new DERSequence(v);
|