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 DERObjectIdentifierAudit identity extension in attribute certificates.static final DERObjectIdentifierAuthority Info Accessstatic final DERObjectIdentifierAuthority Key Identifierstatic final DERObjectIdentifierBasic Constraintsstatic final DERObjectIdentifierBiometricInfostatic final DERObjectIdentifierCertificate Issuerstatic final DERObjectIdentifierCertificate Policiesstatic final DERObjectIdentifierCRL Distribution Pointsstatic final DERObjectIdentifierCRL Numberstatic final DERObjectIdentifierDelta CRL indicatorstatic final DERObjectIdentifierExtended Key Usageprivate Hashtablestatic final DERObjectIdentifierFreshest CRLstatic final DERObjectIdentifierInhibit Any Policystatic final DERObjectIdentifierHold Instruction Codestatic final DERObjectIdentifierInvalidity Datestatic final DERObjectIdentifierIssuer Alternative Namestatic final DERObjectIdentifierIssuing Distribution Pointstatic final DERObjectIdentifierKey Usagestatic final DERObjectIdentifierLogo Typestatic final DERObjectIdentifierName Constraintsstatic final DERObjectIdentifierNoRevAvail extension in attribute certificates.private Vectorstatic final DERObjectIdentifierPolicy Constraintsstatic final DERObjectIdentifierPolicy Mappingsstatic final DERObjectIdentifierPrivate Key Usage Periodstatic final DERObjectIdentifierQCStatementsstatic final DERObjectIdentifierReason codestatic final DERObjectIdentifierSubject Alternative Namestatic final DERObjectIdentifierSubject Directory Attributesstatic final DERObjectIdentifierSubject Info Accessstatic final DERObjectIdentifierSubject Key Identifierstatic final DERObjectIdentifierTargetInformation extension in attribute certificates.Fields inherited from class 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 TypeMethodDescriptionbooleanequivalent(X509Extensions other) return the extension represented by the object identifier passed in.static X509ExtensionsgetInstance(Object obj) static X509ExtensionsgetInstance(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 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
-
X509Extensions
-
-
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:
toASN1Objectin classASN1Encodable
-
equivalent
-