Package org.gudy.bouncycastle.asn1.x509
Class X509Extensions
java.lang.Object
org.gudy.bouncycastle.asn1.ASN1Encodable
org.gudy.bouncycastle.asn1.x509.X509Extensions
- All Implemented Interfaces:
DEREncodable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DERObjectIdentifier
Audit identity extension in attribute certificates.static final DERObjectIdentifier
Authority Info Accessstatic final DERObjectIdentifier
Authority Key Identifierstatic final DERObjectIdentifier
Basic Constraintsstatic final DERObjectIdentifier
BiometricInfostatic final DERObjectIdentifier
Certificate Issuerstatic final DERObjectIdentifier
Certificate Policiesstatic final DERObjectIdentifier
CRL Distribution Pointsstatic final DERObjectIdentifier
CRL Numberstatic final DERObjectIdentifier
Delta CRL indicatorstatic final DERObjectIdentifier
Extended Key Usageprivate Hashtable
static final DERObjectIdentifier
Freshest CRLstatic final DERObjectIdentifier
Inhibit Any Policystatic final DERObjectIdentifier
Hold Instruction Codestatic final DERObjectIdentifier
Invalidity Datestatic final DERObjectIdentifier
Issuer Alternative Namestatic final DERObjectIdentifier
Issuing Distribution Pointstatic final DERObjectIdentifier
Key Usagestatic final DERObjectIdentifier
Logo Typestatic final DERObjectIdentifier
Name Constraintsstatic final DERObjectIdentifier
NoRevAvail extension in attribute certificates.private Vector
static final DERObjectIdentifier
Policy Constraintsstatic final DERObjectIdentifier
Policy Mappingsstatic final DERObjectIdentifier
Private Key Usage Periodstatic final DERObjectIdentifier
QCStatementsstatic final DERObjectIdentifier
Reason codestatic final DERObjectIdentifier
Subject Alternative Namestatic final DERObjectIdentifier
Subject Directory Attributesstatic final DERObjectIdentifier
Subject Info Accessstatic final DERObjectIdentifier
Subject Key Identifierstatic final DERObjectIdentifier
TargetInformation extension in attribute certificates.Fields inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
BER, DER
-
Constructor Summary
ConstructorsConstructorDescriptionX509Extensions
(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 vectorsConstructor from ASN1Sequence. -
Method Summary
Modifier and TypeMethodDescriptionboolean
equivalent
(X509Extensions other) return the extension represented by the object identifier passed in.static X509Extensions
getInstance
(Object obj) static X509Extensions
getInstance
(ASN1TaggedObject obj, boolean explicit) oids()
return an Enumeration of the extension field's object ids.Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension Extension ::= SEQUENCE { extnId EXTENSION.&id ({ExtensionSet}), critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING }Methods inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
-
Field Details
-
SubjectDirectoryAttributes
Subject Directory Attributes -
SubjectKeyIdentifier
Subject Key Identifier -
KeyUsage
Key Usage -
PrivateKeyUsagePeriod
Private Key Usage Period -
SubjectAlternativeName
Subject Alternative Name -
IssuerAlternativeName
Issuer Alternative Name -
BasicConstraints
Basic Constraints -
CRLNumber
CRL Number -
ReasonCode
Reason code -
InstructionCode
Hold Instruction Code -
InvalidityDate
Invalidity Date -
DeltaCRLIndicator
Delta CRL indicator -
IssuingDistributionPoint
Issuing Distribution Point -
CertificateIssuer
Certificate Issuer -
NameConstraints
Name Constraints -
CRLDistributionPoints
CRL Distribution Points -
CertificatePolicies
Certificate Policies -
PolicyMappings
Policy Mappings -
AuthorityKeyIdentifier
Authority Key Identifier -
PolicyConstraints
Policy Constraints -
ExtendedKeyUsage
Extended Key Usage -
FreshestCRL
Freshest CRL -
InhibitAnyPolicy
Inhibit Any Policy -
AuthorityInfoAccess
Authority Info Access -
SubjectInfoAccess
Subject Info Access -
LogoType
Logo Type -
BiometricInfo
BiometricInfo -
QCStatements
QCStatements -
AuditIdentity
Audit identity extension in attribute certificates. -
NoRevAvail
NoRevAvail extension in attribute certificates. -
TargetInformation
TargetInformation extension in attribute certificates. -
extensions
-
ordering
-
-
Constructor Details
-
X509Extensions
Constructor from ASN1Sequence. the extensions are a list of constructed sequences, either with (OID, OctetString) or (OID, Boolean, OctetString) -
X509Extensions
constructor from a table of extensions.it's is assumed the table contains OID/String pairs.
-
X509Extensions
Constructor from a table of extensions with ordering.It's is assumed the table contains OID/String pairs.
-
X509Extensions
Constructor from two vectors- Parameters:
objectIDs
- a vector of the object identifiers.values
- a vector of the extension values.
-
-
Method Details
-
getInstance
-
getInstance
-
oids
return an Enumeration of the extension field's object ids. -
getExtension
return the extension represented by the object identifier passed in.- Returns:
- the extension if it's present, null otherwise.
-
toASN1Object
Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension Extension ::= SEQUENCE { extnId EXTENSION.&id ({ExtensionSet}), critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING }
- Specified by:
toASN1Object
in classASN1Encodable
-
equivalent
-