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

public Class Extension

extends ASN1Object
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.asn1.ASN1Boolean, .ASN1Encodable, .ASN1EncodableVector, .ASN1Object, .ASN1ObjectIdentifier, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .DEROctetString, .DERSequence

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

private 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
expiredCertsOnCRL

Expired Certificates on CRL extension

public static final ASN1ObjectIdentifier
extendedKeyUsage

Extended Key Usage

private ASN1ObjectIdentifier
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.

private ASN1OctetString

Constructor Summary

AccessConstructor and Description
public
public
Extension(ASN1ObjectIdentifier extnId, boolean critical, byte[] value)

public
Extension(ASN1ObjectIdentifier extnId, boolean critical, ASN1OctetString value)

private

Method Summary

Modifier and TypeMethod and Description
private static ASN1Primitive

Returns:

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

Convert the value of the passed in extension to an object

public boolean
equals(Object
the reference object with which to compare.
o
)

Overrides org.bouncycastle.asn1.ASN1Object.equals.

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

Overrides org.bouncycastle.asn1.ASN1Object.hashCode.

Returns a hash code value for this object.
public boolean
public ASN1Primitive
toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.
Inherited from org.bouncycastle.asn1.ASN1Object:
getEncodedgetEncodedhasEncodedTagValue

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
private 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

expiredCertsOnCRLback to summary
public static final ASN1ObjectIdentifier expiredCertsOnCRL

Expired Certificates on CRL extension

extendedKeyUsageback to summary
public static final ASN1ObjectIdentifier extendedKeyUsage

Extended Key Usage

extnIdback to summary
private ASN1ObjectIdentifier extnId
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
private ASN1OctetString value

Constructor Detail

Extensionback to summary
public Extension(ASN1ObjectIdentifier extnId, ASN1Boolean critical, ASN1OctetString value)
Extensionback to summary
public Extension(ASN1ObjectIdentifier extnId, boolean critical, byte[] value)
Extensionback to summary
public Extension(ASN1ObjectIdentifier extnId, boolean critical, ASN1OctetString value)
Extensionback to summary
private Extension(ASN1Sequence seq)

Method Detail

convertValueToObjectback to summary
private static ASN1Primitive convertValueToObject(Extension ext) throws IllegalArgumentException

Convert the value of the passed in extension to an object

Parameters
ext:Extension

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 org.bouncycastle.asn1.ASN1Object.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.

getExtnIdback to summary
public ASN1ObjectIdentifier getExtnId()
getExtnValueback to summary
public ASN1OctetString getExtnValue()
getInstanceback to summary
public static Extension getInstance(Object obj)
getParsedValueback to summary
public ASN1Encodable getParsedValue()
hashCodeback to summary
public int hashCode()

Overrides org.bouncycastle.asn1.ASN1Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this 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()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

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

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.