Class Extensions
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable,io.anyline.nfc.bouncycastle.util.Encodable
public class Extensions extends ASN1Object
Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension Extension ::= SEQUENCE { extnId EXTENSION.&id ({ExtensionSet}), critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING }
-
-
Constructor Summary
Constructors Constructor Description Extensions(Extension extension)Base Constructor Extensions(Array<Extension> extensions)Base Constructor
-
Method Summary
Modifier and Type Method Description static ExtensiongetExtension(Extensions extensions, ASN1ObjectIdentifier oid)static ASN1EncodablegetExtensionParsedValue(Extensions extensions, ASN1ObjectIdentifier oid)static ExtensionsgetInstance(ASN1TaggedObject obj, boolean explicit)static ExtensionsgetInstance(Object obj)Enumerationoids()return an Enumeration of the extension field's object ids. ExtensiongetExtension(ASN1ObjectIdentifier oid)return the extension represented by the object identifier passed in. ASN1EncodablegetExtensionParsedValue(ASN1ObjectIdentifier oid)return the parsed value of the extension represented by the object identifier passed in. ASN1PrimitivetoASN1Primitive()Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension Extension ::= SEQUENCE { extnId EXTENSION.&id ({ExtensionSet}), critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING }booleanequivalent(Extensions other)Array<ASN1ObjectIdentifier>getExtensionOIDs()Array<ASN1ObjectIdentifier>getNonCriticalExtensionOIDs()Array<ASN1ObjectIdentifier>getCriticalExtensionOIDs()-
-
Method Detail
-
getExtension
static Extension getExtension(Extensions extensions, ASN1ObjectIdentifier oid)
-
getExtensionParsedValue
static ASN1Encodable getExtensionParsedValue(Extensions extensions, ASN1ObjectIdentifier oid)
-
getInstance
static Extensions getInstance(ASN1TaggedObject obj, boolean explicit)
-
getInstance
static Extensions getInstance(Object obj)
-
oids
Enumeration oids()
return an Enumeration of the extension field's object ids.
-
getExtension
Extension getExtension(ASN1ObjectIdentifier oid)
return the extension represented by the object identifier passed in.
- Returns:
the extension if it's present, null otherwise.
-
getExtensionParsedValue
ASN1Encodable getExtensionParsedValue(ASN1ObjectIdentifier oid)
return the parsed value of the extension represented by the object identifier passed in.
- Returns:
the parsed value of 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(Extensions other)
-
getExtensionOIDs
Array<ASN1ObjectIdentifier> getExtensionOIDs()
-
getNonCriticalExtensionOIDs
Array<ASN1ObjectIdentifier> getNonCriticalExtensionOIDs()
-
getCriticalExtensionOIDs
Array<ASN1ObjectIdentifier> getCriticalExtensionOIDs()
-
-
-
-