Class X509Extensions
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable
,io.anyline.nfc.bouncycastle.util.Encodable
public class X509Extensions extends ASN1Object
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description X509Extensions(ASN1Sequence seq)
Constructor from ASN1Sequence. 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
Modifier and Type Method Description static X509Extensions
getInstance(ASN1TaggedObject obj, boolean explicit)
static X509Extensions
getInstance(Object obj)
Enumeration
oids()
return an Enumeration of the extension field's object ids. X509Extension
getExtension(ASN1ObjectIdentifier oid)
return the extension represented by the object identifier passed in. ASN1Primitive
toASN1Primitive()
Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension Extension ::= SEQUENCE { extnId EXTENSION.&id ({ExtensionSet}), critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING }
boolean
equivalent(X509Extensions other)
Array<ASN1ObjectIdentifier>
getExtensionOIDs()
Array<ASN1ObjectIdentifier>
getNonCriticalExtensionOIDs()
Array<ASN1ObjectIdentifier>
getCriticalExtensionOIDs()
-
-
Constructor Detail
-
X509Extensions
X509Extensions(ASN1Sequence seq)
Constructor from ASN1Sequence.
-
X509Extensions
X509Extensions(Hashtable extensions)
constructor from a table of extensions.
-
X509Extensions
X509Extensions(Vector ordering, Hashtable extensions)
Constructor from a table of extensions with ordering.
-
-
Method Detail
-
getInstance
static X509Extensions getInstance(ASN1TaggedObject obj, boolean explicit)
-
getInstance
static X509Extensions getInstance(Object obj)
-
oids
Enumeration oids()
return an Enumeration of the extension field's object ids.
-
getExtension
X509Extension getExtension(ASN1ObjectIdentifier oid)
return the extension represented by the object identifier passed in.
- Returns:
the extension if it's present, null otherwise.
-
toASN1Primitive
ASN1Primitive toASN1Primitive()
Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension Extension ::= SEQUENCE { extnId EXTENSION.&id ({ExtensionSet}), critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING }
-
equivalent
boolean equivalent(X509Extensions other)
-
getExtensionOIDs
Array<ASN1ObjectIdentifier> getExtensionOIDs()
-
getNonCriticalExtensionOIDs
Array<ASN1ObjectIdentifier> getNonCriticalExtensionOIDs()
-
getCriticalExtensionOIDs
Array<ASN1ObjectIdentifier> getCriticalExtensionOIDs()
-
-
-
-