org.bouncycastle.asn1.x509
public class X509Extensions extends ASN1Encodable
Constructor Summary | |
---|---|
X509Extensions(ASN1Sequence seq)
Constructor from ASN1Sequence.
the extensions are a list of constructed sequences, either with (OID, OctetString) or (OID, Boolean, OctetString) | |
X509Extensions(Hashtable extensions)
constructor from a table of extensions.
| |
X509Extensions(Vector ordering, Hashtable extensions)
Constructor from a table of extensions with ordering.
| |
X509Extensions(Vector objectIDs, Vector values)
Constructor from two vectors
|
Method Summary | |
---|---|
boolean | equivalent(X509Extensions other) |
X509Extension | getExtension(DERObjectIdentifier oid)
return the extension represented by the object identifier
passed in.
|
static X509Extensions | getInstance(ASN1TaggedObject obj, boolean explicit) |
static X509Extensions | getInstance(Object obj) |
Enumeration | oids()
return an Enumeration of the extension field's object ids. |
DERObject | toASN1Object()Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension Extension ::= SEQUENCE { extnId EXTENSION.&id ({ExtensionSet}), critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING } |
it's is assumed the table contains OID/String pairs.
It's is assumed the table contains OID/String pairs.
Parameters: objectIDs a vector of the object identifiers. values a vector of the extension values.
Returns: the extension if it's present, null otherwise.
Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension Extension ::= SEQUENCE { extnId EXTENSION.&id ({ExtensionSet}), critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING }