public class Extension extends ASN1Object
| Constructor and Description |
|---|
Extension(ASN1ObjectIdentifier extnId,
ASN1Boolean critical,
ASN1OctetString value) |
Extension(ASN1ObjectIdentifier extnId,
boolean critical,
ASN1OctetString value) |
Extension(ASN1ObjectIdentifier extnId,
boolean critical,
byte[] value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
ASN1ObjectIdentifier |
getExtnId() |
ASN1OctetString |
getExtnValue() |
static Extension |
getInstance(Object obj) |
ASN1Encodable |
getParsedValue() |
int |
hashCode()
Returns an integer hash code for this object.
|
boolean |
isCritical() |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
getEncoded, getEncoded, hasEncodedTagValue, toASN1Objectpublic static final ASN1ObjectIdentifier subjectDirectoryAttributes
public static final ASN1ObjectIdentifier subjectKeyIdentifier
public static final ASN1ObjectIdentifier keyUsage
public static final ASN1ObjectIdentifier privateKeyUsagePeriod
public static final ASN1ObjectIdentifier subjectAlternativeName
public static final ASN1ObjectIdentifier issuerAlternativeName
public static final ASN1ObjectIdentifier basicConstraints
public static final ASN1ObjectIdentifier cRLNumber
public static final ASN1ObjectIdentifier reasonCode
public static final ASN1ObjectIdentifier instructionCode
public static final ASN1ObjectIdentifier invalidityDate
public static final ASN1ObjectIdentifier deltaCRLIndicator
public static final ASN1ObjectIdentifier issuingDistributionPoint
public static final ASN1ObjectIdentifier certificateIssuer
public static final ASN1ObjectIdentifier nameConstraints
public static final ASN1ObjectIdentifier cRLDistributionPoints
public static final ASN1ObjectIdentifier certificatePolicies
public static final ASN1ObjectIdentifier policyMappings
public static final ASN1ObjectIdentifier authorityKeyIdentifier
public static final ASN1ObjectIdentifier policyConstraints
public static final ASN1ObjectIdentifier extendedKeyUsage
public static final ASN1ObjectIdentifier freshestCRL
public static final ASN1ObjectIdentifier inhibitAnyPolicy
public static final ASN1ObjectIdentifier authorityInfoAccess
public static final ASN1ObjectIdentifier subjectInfoAccess
public static final ASN1ObjectIdentifier logoType
public static final ASN1ObjectIdentifier biometricInfo
public static final ASN1ObjectIdentifier qCStatements
public static final ASN1ObjectIdentifier auditIdentity
public static final ASN1ObjectIdentifier noRevAvail
public static final ASN1ObjectIdentifier targetInformation
public Extension(ASN1ObjectIdentifier extnId, ASN1Boolean critical, ASN1OctetString value)
public Extension(ASN1ObjectIdentifier extnId, boolean critical, byte[] value)
public Extension(ASN1ObjectIdentifier extnId, boolean critical, ASN1OctetString value)
public ASN1ObjectIdentifier getExtnId()
public boolean isCritical()
public ASN1OctetString getExtnValue()
public ASN1Encodable getParsedValue()
public int hashCode()
ObjectObject.equals(java.lang.Object) returns true must return
the same hash code value. This means that subclasses of Object
usually override both methods or neither method.
Note that hash values must not change over time unless information used in equals comparisons also changes.
See Writing a correct
hashCode method
if you intend implementing your own hashCode method.
hashCode in class ASN1ObjectObject.equals(java.lang.Object)public boolean equals(Object o)
Objecto must represent the same object
as this instance using a class-specific comparison. The general contract
is that this comparison should be reflexive, symmetric, and transitive.
Also, no object reference other than null is equal to null.
The default implementation returns true only if this ==
o. See Writing a correct
equals method
if you intend implementing your own equals method.
The general contract for the equals and Object.hashCode() methods is that if equals returns true for
any two objects, then hashCode() must return the same value for
these objects. This means that subclasses of Object usually
override either both methods or neither of them.
equals in class ASN1Objecto - the object to compare this instance with.true if the specified object is equal to this Object; false otherwise.Object.hashCode()public ASN1Primitive toASN1Primitive()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object