public class

X509Extensions

extends ASN1Encodable
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.x509.X509Extensions

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Fields
public static final ASN1ObjectIdentifier AuditIdentity This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier AuthorityInfoAccess This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier AuthorityKeyIdentifier This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier BasicConstraints This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier BiometricInfo This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier CRLDistributionPoints This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier CRLNumber This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier CertificateIssuer This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier CertificatePolicies This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier DeltaCRLIndicator This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier ExtendedKeyUsage This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier FreshestCRL This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier InhibitAnyPolicy This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier InstructionCode This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier InvalidityDate This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier IssuerAlternativeName This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier IssuingDistributionPoint This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier KeyUsage This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier LogoType This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier NameConstraints This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier NoRevAvail This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier PolicyConstraints This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier PolicyMappings This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier PrivateKeyUsagePeriod This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier QCStatements This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier ReasonCode This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier SubjectAlternativeName This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier SubjectDirectoryAttributes This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier SubjectInfoAccess This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier SubjectKeyIdentifier This field is deprecated. use X509Extension value.
public static final ASN1ObjectIdentifier TargetInformation This field is deprecated. use X509Extension value.
Public Constructors
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
Public Methods
boolean equivalent(X509Extensions other)
ASN1ObjectIdentifier[] getCriticalExtensionOIDs()
X509Extension getExtension(ASN1ObjectIdentifier oid)
return the extension represented by the object identifier passed in.
X509Extension getExtension(DERObjectIdentifier oid)
@deprecated
ASN1ObjectIdentifier[] getExtensionOIDs()
static X509Extensions getInstance(ASN1TaggedObject obj, boolean explicit)
static X509Extensions getInstance(Object obj)
ASN1ObjectIdentifier[] getNonCriticalExtensionOIDs()
Enumeration oids()
return an Enumeration of the extension field's object ids.
DERObject toASN1Object()
     Extensions        ::=   SEQUENCE SIZE (1..MAX) OF Extension

     Extension         ::=   SEQUENCE {
        extnId            EXTENSION.&id ({ExtensionSet}),
        critical          BOOLEAN DEFAULT FALSE,
        extnValue         OCTET STRING }
 
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Fields

public static final ASN1ObjectIdentifier AuditIdentity

This field is deprecated.
use X509Extension value.

Audit identity extension in attribute certificates.

public static final ASN1ObjectIdentifier AuthorityInfoAccess

This field is deprecated.
use X509Extension value.

Authority Info Access

public static final ASN1ObjectIdentifier AuthorityKeyIdentifier

This field is deprecated.
use X509Extension value.

Authority Key Identifier

public static final ASN1ObjectIdentifier BasicConstraints

This field is deprecated.
use X509Extension value.

Basic Constraints

public static final ASN1ObjectIdentifier BiometricInfo

This field is deprecated.
use X509Extension value.

BiometricInfo

public static final ASN1ObjectIdentifier CRLDistributionPoints

This field is deprecated.
use X509Extension value.

CRL Distribution Points

public static final ASN1ObjectIdentifier CRLNumber

This field is deprecated.
use X509Extension value.

CRL Number

public static final ASN1ObjectIdentifier CertificateIssuer

This field is deprecated.
use X509Extension value.

Certificate Issuer

public static final ASN1ObjectIdentifier CertificatePolicies

This field is deprecated.
use X509Extension value.

Certificate Policies

public static final ASN1ObjectIdentifier DeltaCRLIndicator

This field is deprecated.
use X509Extension value.

Delta CRL indicator

public static final ASN1ObjectIdentifier ExtendedKeyUsage

This field is deprecated.
use X509Extension value.

Extended Key Usage

public static final ASN1ObjectIdentifier FreshestCRL

This field is deprecated.
use X509Extension value.

Freshest CRL

public static final ASN1ObjectIdentifier InhibitAnyPolicy

This field is deprecated.
use X509Extension value.

Inhibit Any Policy

public static final ASN1ObjectIdentifier InstructionCode

This field is deprecated.
use X509Extension value.

Hold Instruction Code

public static final ASN1ObjectIdentifier InvalidityDate

This field is deprecated.
use X509Extension value.

Invalidity Date

public static final ASN1ObjectIdentifier IssuerAlternativeName

This field is deprecated.
use X509Extension value.

Issuer Alternative Name

public static final ASN1ObjectIdentifier IssuingDistributionPoint

This field is deprecated.
use X509Extension value.

Issuing Distribution Point

public static final ASN1ObjectIdentifier KeyUsage

This field is deprecated.
use X509Extension value.

Key Usage

public static final ASN1ObjectIdentifier LogoType

This field is deprecated.
use X509Extension value.

Logo Type

public static final ASN1ObjectIdentifier NameConstraints

This field is deprecated.
use X509Extension value.

Name Constraints

public static final ASN1ObjectIdentifier NoRevAvail

This field is deprecated.
use X509Extension value.

NoRevAvail extension in attribute certificates.

public static final ASN1ObjectIdentifier PolicyConstraints

This field is deprecated.
use X509Extension value.

Policy Constraints

public static final ASN1ObjectIdentifier PolicyMappings

This field is deprecated.
use X509Extension value.

Policy Mappings

public static final ASN1ObjectIdentifier PrivateKeyUsagePeriod

This field is deprecated.
use X509Extension value.

Private Key Usage Period

public static final ASN1ObjectIdentifier QCStatements

This field is deprecated.
use X509Extension value.

QCStatements

public static final ASN1ObjectIdentifier ReasonCode

This field is deprecated.
use X509Extension value.

Reason code

public static final ASN1ObjectIdentifier SubjectAlternativeName

This field is deprecated.
use X509Extension value.

Subject Alternative Name

public static final ASN1ObjectIdentifier SubjectDirectoryAttributes

This field is deprecated.
use X509Extension value.

Subject Directory Attributes

public static final ASN1ObjectIdentifier SubjectInfoAccess

This field is deprecated.
use X509Extension value.

Subject Info Access

public static final ASN1ObjectIdentifier SubjectKeyIdentifier

This field is deprecated.
use X509Extension value.

Subject Key Identifier

public static final ASN1ObjectIdentifier TargetInformation

This field is deprecated.
use X509Extension value.

TargetInformation extension in attribute certificates.

Public Constructors

public X509Extensions (ASN1Sequence seq)

Constructor from ASN1Sequence. the extensions are a list of constructed sequences, either with (OID, OctetString) or (OID, Boolean, OctetString)

public X509Extensions (Hashtable extensions)

constructor from a table of extensions.

it's is assumed the table contains OID/String pairs.

public X509Extensions (Vector ordering, Hashtable extensions)

Constructor from a table of extensions with ordering.

It's is assumed the table contains OID/String pairs.

public X509Extensions (Vector objectIDs, Vector values)

Constructor from two vectors

Parameters
objectIDs a vector of the object identifiers.
values a vector of the extension values.

Public Methods

public boolean equivalent (X509Extensions other)

public ASN1ObjectIdentifier[] getCriticalExtensionOIDs ()

public X509Extension getExtension (ASN1ObjectIdentifier oid)

return the extension represented by the object identifier passed in.

Returns
  • the extension if it's present, null otherwise.

public X509Extension getExtension (DERObjectIdentifier oid)

@deprecated

public ASN1ObjectIdentifier[] getExtensionOIDs ()

public static X509Extensions getInstance (ASN1TaggedObject obj, boolean explicit)

public static X509Extensions getInstance (Object obj)

public ASN1ObjectIdentifier[] getNonCriticalExtensionOIDs ()

public Enumeration oids ()

return an Enumeration of the extension field's object ids.

public DERObject toASN1Object ()

     Extensions        ::=   SEQUENCE SIZE (1..MAX) OF Extension

     Extension         ::=   SEQUENCE {
        extnId            EXTENSION.&id ({ExtensionSet}),
        critical          BOOLEAN DEFAULT FALSE,
        extnValue         OCTET STRING }