Top Description Fields Constructors Methods
org.bouncycastle.asn1.x509

public Class X509Extension

extends Object
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.asn1.ASN1Boolean, .ASN1Encodable, .ASN1ObjectIdentifier, .ASN1OctetString, .ASN1Primitive

Deprecated

use Extension

an object for the elements in the X.509 V3 extension block.

Field Summary

Modifier and TypeField and Description
public static final ASN1ObjectIdentifier
auditIdentity

Audit identity extension in attribute certificates.

public static final ASN1ObjectIdentifier
authorityInfoAccess

Authority Info Access

public static final ASN1ObjectIdentifier
authorityKeyIdentifier

Authority Key Identifier

public static final ASN1ObjectIdentifier
basicConstraints

Basic Constraints

public static final ASN1ObjectIdentifier
biometricInfo

BiometricInfo

public static final ASN1ObjectIdentifier
certificateIssuer

Certificate Issuer

public static final ASN1ObjectIdentifier
certificatePolicies

Certificate Policies

pack-priv boolean
public static final ASN1ObjectIdentifier
cRLDistributionPoints

CRL Distribution Points

public static final ASN1ObjectIdentifier
cRLNumber

CRL Number

public static final ASN1ObjectIdentifier
deltaCRLIndicator

Delta CRL indicator

public static final ASN1ObjectIdentifier
extendedKeyUsage

Extended Key Usage

public static final ASN1ObjectIdentifier
freshestCRL

Freshest CRL

public static final ASN1ObjectIdentifier
inhibitAnyPolicy

Inhibit Any Policy

public static final ASN1ObjectIdentifier
instructionCode

Hold Instruction Code

public static final ASN1ObjectIdentifier
invalidityDate

Invalidity Date

public static final ASN1ObjectIdentifier
issuerAlternativeName

Issuer Alternative Name

public static final ASN1ObjectIdentifier
issuingDistributionPoint

Issuing Distribution Point

public static final ASN1ObjectIdentifier
keyUsage

Key Usage

public static final ASN1ObjectIdentifier
logoType

Logo Type

public static final ASN1ObjectIdentifier
nameConstraints

Name Constraints

public static final ASN1ObjectIdentifier
noRevAvail

NoRevAvail extension in attribute certificates.

public static final ASN1ObjectIdentifier
policyConstraints

Policy Constraints

public static final ASN1ObjectIdentifier
policyMappings

Policy Mappings

public static final ASN1ObjectIdentifier
privateKeyUsagePeriod

Private Key Usage Period

public static final ASN1ObjectIdentifier
qCStatements

QCStatements

public static final ASN1ObjectIdentifier
reasonCode

Reason code

public static final ASN1ObjectIdentifier
subjectAlternativeName

Subject Alternative Name

public static final ASN1ObjectIdentifier
subjectDirectoryAttributes

Subject Directory Attributes

public static final ASN1ObjectIdentifier
subjectInfoAccess

Subject Info Access

public static final ASN1ObjectIdentifier
subjectKeyIdentifier

Subject Key Identifier

public static final ASN1ObjectIdentifier
targetInformation

TargetInformation extension in attribute certificates.

pack-priv ASN1OctetString

Constructor Summary

AccessConstructor and Description
public
public
X509Extension(boolean critical, ASN1OctetString value)

Method Summary

Modifier and TypeMethod and Description
public static ASN1Primitive

Returns:

the object the value string contains
convertValueToObject
(X509Extension
the extension to parse
ext
)

Deprecated as a consequence of X509Extension being deprecated.
Convert the value of the passed in extension to an object
public boolean
equals(Object
the reference object with which to compare.
o
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.
public ASN1Encodable
public ASN1OctetString
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for the object.
public boolean
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

auditIdentityback to summary
public static final ASN1ObjectIdentifier auditIdentity

Audit identity extension in attribute certificates.

authorityInfoAccessback to summary
public static final ASN1ObjectIdentifier authorityInfoAccess

Authority Info Access

authorityKeyIdentifierback to summary
public static final ASN1ObjectIdentifier authorityKeyIdentifier

Authority Key Identifier

basicConstraintsback to summary
public static final ASN1ObjectIdentifier basicConstraints

Basic Constraints

biometricInfoback to summary
public static final ASN1ObjectIdentifier biometricInfo

BiometricInfo

certificateIssuerback to summary
public static final ASN1ObjectIdentifier certificateIssuer

Certificate Issuer

certificatePoliciesback to summary
public static final ASN1ObjectIdentifier certificatePolicies

Certificate Policies

criticalback to summary
pack-priv boolean critical
cRLDistributionPointsback to summary
public static final ASN1ObjectIdentifier cRLDistributionPoints

CRL Distribution Points

cRLNumberback to summary
public static final ASN1ObjectIdentifier cRLNumber

CRL Number

deltaCRLIndicatorback to summary
public static final ASN1ObjectIdentifier deltaCRLIndicator

Delta CRL indicator

extendedKeyUsageback to summary
public static final ASN1ObjectIdentifier extendedKeyUsage

Extended Key Usage

freshestCRLback to summary
public static final ASN1ObjectIdentifier freshestCRL

Freshest CRL

inhibitAnyPolicyback to summary
public static final ASN1ObjectIdentifier inhibitAnyPolicy

Inhibit Any Policy

instructionCodeback to summary
public static final ASN1ObjectIdentifier instructionCode

Hold Instruction Code

invalidityDateback to summary
public static final ASN1ObjectIdentifier invalidityDate

Invalidity Date

issuerAlternativeNameback to summary
public static final ASN1ObjectIdentifier issuerAlternativeName

Issuer Alternative Name

issuingDistributionPointback to summary
public static final ASN1ObjectIdentifier issuingDistributionPoint

Issuing Distribution Point

keyUsageback to summary
public static final ASN1ObjectIdentifier keyUsage

Key Usage

logoTypeback to summary
public static final ASN1ObjectIdentifier logoType

Logo Type

nameConstraintsback to summary
public static final ASN1ObjectIdentifier nameConstraints

Name Constraints

noRevAvailback to summary
public static final ASN1ObjectIdentifier noRevAvail

NoRevAvail extension in attribute certificates.

policyConstraintsback to summary
public static final ASN1ObjectIdentifier policyConstraints

Policy Constraints

policyMappingsback to summary
public static final ASN1ObjectIdentifier policyMappings

Policy Mappings

privateKeyUsagePeriodback to summary
public static final ASN1ObjectIdentifier privateKeyUsagePeriod

Private Key Usage Period

qCStatementsback to summary
public static final ASN1ObjectIdentifier qCStatements

QCStatements

reasonCodeback to summary
public static final ASN1ObjectIdentifier reasonCode

Reason code

subjectAlternativeNameback to summary
public static final ASN1ObjectIdentifier subjectAlternativeName

Subject Alternative Name

subjectDirectoryAttributesback to summary
public static final ASN1ObjectIdentifier subjectDirectoryAttributes

Subject Directory Attributes

subjectInfoAccessback to summary
public static final ASN1ObjectIdentifier subjectInfoAccess

Subject Info Access

subjectKeyIdentifierback to summary
public static final ASN1ObjectIdentifier subjectKeyIdentifier

Subject Key Identifier

targetInformationback to summary
public static final ASN1ObjectIdentifier targetInformation

TargetInformation extension in attribute certificates.

valueback to summary
pack-priv ASN1OctetString value

Constructor Detail

X509Extensionback to summary
public X509Extension(ASN1Boolean critical, ASN1OctetString value)
X509Extensionback to summary
public X509Extension(boolean critical, ASN1OctetString value)

Method Detail

convertValueToObjectback to summary
public static ASN1Primitive convertValueToObject(X509Extension ext) throws IllegalArgumentException

Deprecated

as a consequence of X509Extension being deprecated. See corresponding docs for further information.

Convert the value of the passed in extension to an object

Parameters
ext:X509Extension

the extension to parse

Returns:ASN1Primitive

the object the value string contains

Exceptions
IllegalArgumentException:
if conversion is not possible
equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
o:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

getParsedValueback to summary
public ASN1Encodable getParsedValue()
getValueback to summary
public ASN1OctetString getValue()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object.

isCriticalback to summary
public boolean isCritical()