Package org.bouncycastle.asn1.x509
Class Extensions
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.Extensions
- All Implemented Interfaces:
ASN1Encodable
,Encodable
-
Constructor Summary
ConstructorsConstructorDescriptionExtensions
(Extension extension) Base ConstructorExtensions
(Extension[] extensions) Base Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
equivalent
(Extensions other) return the extension represented by the object identifier passed in.return the parsed value of the extension represented by the object identifier passed in.static Extensions
getInstance
(Object obj) static Extensions
getInstance
(ASN1TaggedObject obj, boolean explicit) oids()
return an Enumeration of the extension field's object ids.Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension Extension ::= SEQUENCE { extnId EXTENSION.&id ({ExtensionSet}), critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING }Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
Extensions
Base Constructor- Parameters:
extension
- a single extension.
-
Extensions
Base Constructor- Parameters:
extensions
- an array of extensions.
-
-
Method Details
-
getInstance
-
getInstance
-
oids
return an Enumeration of the extension field's object ids. -
getExtension
return the extension represented by the object identifier passed in.- Returns:
- the extension if it's present, null otherwise.
-
getExtensionParsedValue
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
Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension Extension ::= SEQUENCE { extnId EXTENSION.&id ({ExtensionSet}), critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING }
- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-
equivalent
-
getExtensionOIDs
-
getNonCriticalExtensionOIDs
-
getCriticalExtensionOIDs
-