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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Extensions
public Extensions(Extension[] extensions)
- Base Constructor
- Parameters:
extensions
- an array of extensions.
getInstance
public static Extensions getInstance(ASN1TaggedObject obj,
boolean explicit)
getInstance
public static Extensions getInstance(java.lang.Object obj)
oids
public java.util.Enumeration oids()
- return an Enumeration of the extension field's object ids.
getExtension
public Extension getExtension(ASN1ObjectIdentifier oid)
- return the extension represented by the object identifier
passed in.
- Returns:
- the extension if it's present, null otherwise.
toASN1Primitive
public ASN1Primitive 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 interface ASN1Encodable
- Specified by:
toASN1Primitive
in class ASN1Object
equivalent
public boolean equivalent(Extensions other)
getExtensionOIDs
public ASN1ObjectIdentifier[] getExtensionOIDs()
getNonCriticalExtensionOIDs
public ASN1ObjectIdentifier[] getNonCriticalExtensionOIDs()
getCriticalExtensionOIDs
public ASN1ObjectIdentifier[] getCriticalExtensionOIDs()