Top Fields Constructors Methods
org.bouncycastle.asn1.x509

public Class X509Extensions

extends ASN1Object
Class Inheritance
Imports
java.util.Enumeration, .Hashtable, .Vector, org.bouncycastle.asn1.ASN1Boolean, .ASN1EncodableVector, .ASN1Object, .ASN1ObjectIdentifier, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .BERTags, .DERSequence

Deprecated

use Extension and Extensions

Field Summary

Modifier and TypeField and Description
public static final ASN1ObjectIdentifier
AuditIdentity

Deprecated use X509Extension value.
Audit identity extension in attribute certificates.
public static final ASN1ObjectIdentifier
AuthorityInfoAccess

Deprecated use X509Extension value.
Authority Info Access
public static final ASN1ObjectIdentifier
AuthorityKeyIdentifier

Deprecated use X509Extension value.
Authority Key Identifier
public static final ASN1ObjectIdentifier
BasicConstraints

Deprecated use X509Extension value.
Basic Constraints
public static final ASN1ObjectIdentifier
BiometricInfo

Deprecated use X509Extension value.
BiometricInfo
public static final ASN1ObjectIdentifier
CertificateIssuer

Deprecated use X509Extension value.
Certificate Issuer
public static final ASN1ObjectIdentifier
CertificatePolicies

Deprecated use X509Extension value.
Certificate Policies
public static final ASN1ObjectIdentifier
CRLDistributionPoints

Deprecated use X509Extension value.
CRL Distribution Points
public static final ASN1ObjectIdentifier
CRLNumber

Deprecated use X509Extension value.
CRL Number
public static final ASN1ObjectIdentifier
DeltaCRLIndicator

Deprecated use X509Extension value.
Delta CRL indicator
public static final ASN1ObjectIdentifier
ExtendedKeyUsage

Deprecated use X509Extension value.
Extended Key Usage
private Hashtable<K, V>
public static final ASN1ObjectIdentifier
FreshestCRL

Deprecated use X509Extension value.
Freshest CRL
public static final ASN1ObjectIdentifier
InhibitAnyPolicy

Deprecated use X509Extension value.
Inhibit Any Policy
public static final ASN1ObjectIdentifier
InstructionCode

Deprecated use X509Extension value.
Hold Instruction Code
public static final ASN1ObjectIdentifier
InvalidityDate

Deprecated use X509Extension value.
Invalidity Date
public static final ASN1ObjectIdentifier
IssuerAlternativeName

Deprecated use X509Extension value.
Issuer Alternative Name
public static final ASN1ObjectIdentifier
IssuingDistributionPoint

Deprecated use X509Extension value.
Issuing Distribution Point
public static final ASN1ObjectIdentifier
KeyUsage

Deprecated use X509Extension value.
Key Usage
public static final ASN1ObjectIdentifier
LogoType

Deprecated use X509Extension value.
Logo Type
public static final ASN1ObjectIdentifier
NameConstraints

Deprecated use X509Extension value.
Name Constraints
public static final ASN1ObjectIdentifier
NoRevAvail

Deprecated use X509Extension value.
NoRevAvail extension in attribute certificates.
private Vector<E>
public static final ASN1ObjectIdentifier
PolicyConstraints

Deprecated use X509Extension value.
Policy Constraints
public static final ASN1ObjectIdentifier
PolicyMappings

Deprecated use X509Extension value.
Policy Mappings
public static final ASN1ObjectIdentifier
PrivateKeyUsagePeriod

Deprecated use X509Extension value.
Private Key Usage Period
public static final ASN1ObjectIdentifier
QCStatements

Deprecated use X509Extension value.
QCStatements
public static final ASN1ObjectIdentifier
ReasonCode

Deprecated use X509Extension value.
Reason code
public static final ASN1ObjectIdentifier
SubjectAlternativeName

Deprecated use X509Extension value.
Subject Alternative Name
public static final ASN1ObjectIdentifier
SubjectDirectoryAttributes

Deprecated use X509Extension value.
Subject Directory Attributes
public static final ASN1ObjectIdentifier
SubjectInfoAccess

Deprecated use X509Extension value.
Subject Info Access
public static final ASN1ObjectIdentifier
SubjectKeyIdentifier

Deprecated use X509Extension value.
Subject Key Identifier
public static final ASN1ObjectIdentifier
TargetInformation

Deprecated use X509Extension value.
TargetInformation extension in attribute certificates.

Constructor Summary

AccessConstructor and Description
public
X509Extensions(ASN1Sequence seq)

Constructor from ASN1Sequence.

public
X509Extensions(Hashtable<K, V> extensions)

constructor from a table of extensions.

public
X509Extensions(Vector<E> ordering, Hashtable<K, V> extensions)
Deprecated use Extensions

Constructor from a table of extensions with ordering.

public
X509Extensions(Vector<E>
a vector of the object identifiers.
objectIDs
,
Vector<E>
a vector of the extension values.
values
)
Deprecated use Extensions

Constructor from two vectors

Method Summary

Modifier and TypeMethod and Description
public boolean
equivalent(X509Extensions other)
References Deprecated X509Extensions is deprecated or references (maybe indirectly) at least one deprecated element.

public ASN1ObjectIdentifier[]
public X509Extension

Returns:

the extension if it's present, null otherwise.
getExtension
(ASN1ObjectIdentifier oid)
References Deprecated X509Extension is deprecated or references (maybe indirectly) at least one deprecated element.

return the extension represented by the object identifier passed in.

public ASN1ObjectIdentifier[]
private ASN1ObjectIdentifier[]
getExtensionOIDs(boolean isCritical)

public static X509Extensions
getInstance(ASN1TaggedObject obj, boolean explicit)
References Deprecated X509Extensions is deprecated or references (maybe indirectly) at least one deprecated element.

public static X509Extensions
getInstance(Object obj)
References Deprecated X509Extensions is deprecated or references (maybe indirectly) at least one deprecated element.

public ASN1ObjectIdentifier[]
public Enumeration<E>
oids()

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

public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

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

    Extension         ::=   SEQUENCE {
       extnId            EXTENSION.
private ASN1ObjectIdentifier[]
toOidArray(Vector<E> oidVec)

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

AuditIdentityback to summary
public static final ASN1ObjectIdentifier AuditIdentity

Deprecated

use X509Extension value.

Audit identity extension in attribute certificates.

AuthorityInfoAccessback to summary
public static final ASN1ObjectIdentifier AuthorityInfoAccess

Deprecated

use X509Extension value.

Authority Info Access

AuthorityKeyIdentifierback to summary
public static final ASN1ObjectIdentifier AuthorityKeyIdentifier

Deprecated

use X509Extension value.

Authority Key Identifier

BasicConstraintsback to summary
public static final ASN1ObjectIdentifier BasicConstraints

Deprecated

use X509Extension value.

Basic Constraints

BiometricInfoback to summary
public static final ASN1ObjectIdentifier BiometricInfo

Deprecated

use X509Extension value.

BiometricInfo

CertificateIssuerback to summary
public static final ASN1ObjectIdentifier CertificateIssuer

Deprecated

use X509Extension value.

Certificate Issuer

CertificatePoliciesback to summary
public static final ASN1ObjectIdentifier CertificatePolicies

Deprecated

use X509Extension value.

Certificate Policies

CRLDistributionPointsback to summary
public static final ASN1ObjectIdentifier CRLDistributionPoints

Deprecated

use X509Extension value.

CRL Distribution Points

CRLNumberback to summary
public static final ASN1ObjectIdentifier CRLNumber

Deprecated

use X509Extension value.

CRL Number

DeltaCRLIndicatorback to summary
public static final ASN1ObjectIdentifier DeltaCRLIndicator

Deprecated

use X509Extension value.

Delta CRL indicator

ExtendedKeyUsageback to summary
public static final ASN1ObjectIdentifier ExtendedKeyUsage

Deprecated

use X509Extension value.

Extended Key Usage

extensionsback to summary
private Hashtable<K, V> extensions
FreshestCRLback to summary
public static final ASN1ObjectIdentifier FreshestCRL

Deprecated

use X509Extension value.

Freshest CRL

InhibitAnyPolicyback to summary
public static final ASN1ObjectIdentifier InhibitAnyPolicy

Deprecated

use X509Extension value.

Inhibit Any Policy

InstructionCodeback to summary
public static final ASN1ObjectIdentifier InstructionCode

Deprecated

use X509Extension value.

Hold Instruction Code

InvalidityDateback to summary
public static final ASN1ObjectIdentifier InvalidityDate

Deprecated

use X509Extension value.

Invalidity Date

IssuerAlternativeNameback to summary
public static final ASN1ObjectIdentifier IssuerAlternativeName

Deprecated

use X509Extension value.

Issuer Alternative Name

IssuingDistributionPointback to summary
public static final ASN1ObjectIdentifier IssuingDistributionPoint

Deprecated

use X509Extension value.

Issuing Distribution Point

KeyUsageback to summary
public static final ASN1ObjectIdentifier KeyUsage

Deprecated

use X509Extension value.

Key Usage

LogoTypeback to summary
public static final ASN1ObjectIdentifier LogoType

Deprecated

use X509Extension value.

Logo Type

NameConstraintsback to summary
public static final ASN1ObjectIdentifier NameConstraints

Deprecated

use X509Extension value.

Name Constraints

NoRevAvailback to summary
public static final ASN1ObjectIdentifier NoRevAvail

Deprecated

use X509Extension value.

NoRevAvail extension in attribute certificates.

orderingback to summary
private Vector<E> ordering
PolicyConstraintsback to summary
public static final ASN1ObjectIdentifier PolicyConstraints

Deprecated

use X509Extension value.

Policy Constraints

PolicyMappingsback to summary
public static final ASN1ObjectIdentifier PolicyMappings

Deprecated

use X509Extension value.

Policy Mappings

PrivateKeyUsagePeriodback to summary
public static final ASN1ObjectIdentifier PrivateKeyUsagePeriod

Deprecated

use X509Extension value.

Private Key Usage Period

QCStatementsback to summary
public static final ASN1ObjectIdentifier QCStatements

Deprecated

use X509Extension value.

QCStatements

ReasonCodeback to summary
public static final ASN1ObjectIdentifier ReasonCode

Deprecated

use X509Extension value.

Reason code

SubjectAlternativeNameback to summary
public static final ASN1ObjectIdentifier SubjectAlternativeName

Deprecated

use X509Extension value.

Subject Alternative Name

SubjectDirectoryAttributesback to summary
public static final ASN1ObjectIdentifier SubjectDirectoryAttributes

Deprecated

use X509Extension value.

Subject Directory Attributes

SubjectInfoAccessback to summary
public static final ASN1ObjectIdentifier SubjectInfoAccess

Deprecated

use X509Extension value.

Subject Info Access

SubjectKeyIdentifierback to summary
public static final ASN1ObjectIdentifier SubjectKeyIdentifier

Deprecated

use X509Extension value.

Subject Key Identifier

TargetInformationback to summary
public static final ASN1ObjectIdentifier TargetInformation

Deprecated

use X509Extension value.

TargetInformation extension in attribute certificates.

Constructor Detail

X509Extensionsback to summary
public X509Extensions(ASN1Sequence seq)

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

X509Extensionsback to summary
public X509Extensions(Hashtable<K, V> extensions)

constructor from a table of extensions.

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

X509Extensionsback to summary
public X509Extensions(Vector<E> ordering, Hashtable<K, V> extensions)

Deprecated

use Extensions

Constructor from a table of extensions with ordering.

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

X509Extensionsback to summary
public X509Extensions(Vector<E> objectIDs, Vector<E> values)

Deprecated

use Extensions

Constructor from two vectors

Parameters
objectIDs:Vector<E>

a vector of the object identifiers.

values:Vector<E>

a vector of the extension values.

Method Detail

equivalentback to summary
public boolean equivalent(X509Extensions other)

References Deprecated

X509Extensions is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

getCriticalExtensionOIDsback to summary
public ASN1ObjectIdentifier[] getCriticalExtensionOIDs()
getExtensionback to summary
public X509Extension getExtension(ASN1ObjectIdentifier oid)

References Deprecated

X509Extension is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

return the extension represented by the object identifier passed in.

Returns:X509Extension

the extension if it's present, null otherwise.

getExtensionOIDsback to summary
public ASN1ObjectIdentifier[] getExtensionOIDs()
getExtensionOIDsback to summary
private ASN1ObjectIdentifier[] getExtensionOIDs(boolean isCritical)
getInstanceback to summary
public static X509Extensions getInstance(ASN1TaggedObject obj, boolean explicit)

References Deprecated

X509Extensions is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

getInstanceback to summary
public static X509Extensions getInstance(Object obj)

References Deprecated

X509Extensions is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

getNonCriticalExtensionOIDsback to summary
public ASN1ObjectIdentifier[] getNonCriticalExtensionOIDs()
oidsback to summary
public Enumeration<E> oids()

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

toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

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

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

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.

toOidArrayback to summary
private ASN1ObjectIdentifier[] toOidArray(Vector<E> oidVec)