Methods Summary |
---|
public org.bouncycastle.asn1.DERObjectIdentifier | getAttrType()
return attrType;
|
public org.bouncycastle.asn1.ASN1Set | getAttrValues()
return attrValues;
|
public org.bouncycastle.asn1.DERObject | getDERObject()Produce an object suitable for an ASN1OutputStream.
Attribute ::= SEQUENCE {
attrType OBJECT IDENTIFIER,
attrValues SET OF AttributeValue
}
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(attrType);
v.add(attrValues);
return new DERSequence(v);
|
public static org.bouncycastle.asn1.pkcs.Attribute | getInstance(java.lang.Object o)return an Attribute object from the given object.
if (o == null || o instanceof Attribute)
{
return (Attribute)o;
}
if (o instanceof ASN1Sequence)
{
return new Attribute((ASN1Sequence)o);
}
throw new IllegalArgumentException("unknown object in factory");
|