Package org.bouncycastle.asn1.x509
Class Extensions
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.Extensions
- All Implemented Interfaces:
ASN1Encodable
public class Extensions extends ASN1Object
-
Constructor Summary
Constructors Constructor Description Extensions(Extension extension)Base ConstructorExtensions(Extension[] extensions)Base Constructor -
Method Summary
Modifier and Type Method Description booleanequivalent(Extensions other)ASN1ObjectIdentifier[]getCriticalExtensionOIDs()ExtensiongetExtension(ASN1ObjectIdentifier oid)return the extension represented by the object identifier passed in.ASN1ObjectIdentifier[]getExtensionOIDs()ASN1EncodablegetExtensionParsedValue(ASN1ObjectIdentifier oid)return the parsed value of the extension represented by the object identifier passed in.static ExtensionsgetInstance(Object obj)static ExtensionsgetInstance(ASN1TaggedObject obj, boolean explicit)ASN1ObjectIdentifier[]getNonCriticalExtensionOIDs()Enumerationoids()return an Enumeration of the extension field's object ids.ASN1PrimitivetoASN1Primitive()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, toASN1Object
-
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:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object
-
equivalent
-
getExtensionOIDs
-
getNonCriticalExtensionOIDs
-
getCriticalExtensionOIDs
-