codec.x509.extensions
Class CertificatePoliciesExtension
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--java.util.ArrayList
|
+--codec.asn1.ASN1AbstractCollection
|
+--codec.asn1.ASN1Sequence
|
+--codec.x509.X509Extension
|
+--codec.x509.extensions.CertificatePoliciesExtension
- All Implemented Interfaces:
- ASN1Collection, ASN1Type, Cloneable, Collection, Externalizable, List, Serializable, X509Extension
- public class CertificatePoliciesExtension
- extends X509Extension
id-ce-extCertificatePolicies OBJECT IDENTIFIER ::= {id-ce 32}
CertificatePoliciesSyntax ::= SEQUENCE SIZE (1..MAX) OF
policyInformation
PolicyInformation ::= SEQUENCE {
policyIdentifier CertPolicyId,
policyQualifier SEQUENCE SIZE (1..MAX) OF
policyQualifierInfo OPTIONAL
}
CertPolicyId ::= OBJECT IDENTIFIER
PolicyQualifierInfo ::= SEQUENCE {
policyQualifierId PolicyQualifierId,
qualifier ANY DEFINED BY policyQualifierId
}
PolicyQualifierId ::= OBJECT IDENTIFIER
id-ce OBJECT IDENTIFIER ::= {joint-iso-ccitt(2) ds(5) 29}
- Author:
- mal
- See Also:
- Serialized Form
| Methods inherited from class codec.x509.X509Extension |
decodeExtensionValue, getCriticalExtensionOIDs, getEncoded, getExtensionValue, getNonCriticalExtensionOIDs, getOID, getValue, hasUnsupportedCriticalExtension, isCritical, setCritical, setOID, setValue, toString |
| Methods inherited from class codec.asn1.ASN1AbstractCollection |
checkConstraints, encode, getCollection, getConstraint, getTagClass, isExplicit, isOptional, isType, readExternal, setConstraint, setExplicit, setOptional, writeExternal |
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
id_ce_extCertificatePolicies
protected ASN1ObjectIdentifier id_ce_extCertificatePolicies
ID_QT_CPS
public static final ASN1ObjectIdentifier ID_QT_CPS
- policyQualifierIds for Internet policy qualifiers defined in RFC3280:
id-qt-cps OBJECT IDENTIFIER ::= { id-qt 1 }
... The CPS Pointer qualifier contains a pointer to a Certification
Practice Statement (CPS) published by the CA. The pointer is in the form
of a URI. Processing requirements for this qualifier are a local matter.
No action is mandated by this specification regardless of the criticality
value asserted for the extension. ...
ID_QT_UNOTICE
public static final ASN1ObjectIdentifier ID_QT_UNOTICE
- THIS Qualifier is currently not supported by this class!
policyQualifierIds for Internet policy qualifiers defined in RFC3280:
id-qt-unotice OBJECT IDENTIFIER ::= { id-qt 2 }
... The user notice has two optional fields: the noticeRef field and the
explicitText field. The noticeRef field, if used, names an organization
and identifies, by number, a particular textual statement prepared by
that organization. For example, it might identify the organization
"CertsRUs" and notice number 1. In a typical implementation, the
application software will have a notice file containing the current set
of notices for CertsRUs; the application will extract the notice text
from the file and display it. Messages MAY be multilingual, allowing the
software to select the particular language message for its own
environment.
An explicitText field includes the textual statement directly in the
certificate. The explicitText field is a string with a maximum size of
200 characters.
If both the noticeRef and explicitText options are included in the one
qualifier and if the application software can locate the notice text
indicated by the noticeRef option, then that text SHOULD be displayed;
otherwise, the explicitText string SHOULD be displayed. ...
certificatePoliciesSyntax
protected ASN1SequenceOf certificatePoliciesSyntax
CertificatePoliciesExtension
public CertificatePoliciesExtension()
throws Exception
- Default constructor for CertificatePoliciesExtension.
- Throws:
Exception -
CertificatePoliciesExtension
public CertificatePoliciesExtension(boolean crit)
throws Exception
- Constructor for CertificatePoliciesExtension.
- Parameters:
crit - Determines if extension is marked critical- Throws:
Exception -
CertificatePoliciesExtension
public CertificatePoliciesExtension(byte[] ext)
throws ASN1Exception,
IOException
- Constructor for CertificatePoliciesExtension.
- Parameters:
ext - - Throws:
ASN1Exception - IOException -
addPolicyInformation
public void addPolicyInformation(ASN1ObjectIdentifier policyIdentifier,
ASN1SequenceOf policyQualifiers)
throws Exception
- Adds a PolicyInformationSet to the extension
- Parameters:
policyIdentifier - the OID of the policy to addpolicyQualifiers - ASN1SequenceOf containing the policyQualifiers
addPolicyInformation
public void addPolicyInformation(ASN1ObjectIdentifier policyIdentifier)
throws Exception
addPolicyInformationCPS
public void addPolicyInformationCPS(ASN1ObjectIdentifier policyIdentifier,
ASN1IA5String locationOfCPS)
throws Exception
- adds a PolicyInformation defined by an ID and the pointer to the
Certificate Practice Statement.
- Parameters:
policyIdentifier - OID of the PolicylocationOfCPS - a URI pointing to the Trust Center's CPS
decode
public void decode(Decoder dec)
throws ASN1Exception,
IOException
- Description copied from class:
ASN1AbstractCollection
- Reads this collection from the given
Decoder. This type
is initialized with the decoded data. The components of the decoded
collection must match the components of this collection. If they do then
the components are also initialized with the decoded values. Otherwise an
exception is thrown.
- Overrides:
decode in class ASN1AbstractCollection
- Following copied from class:
codec.asn1.ASN1AbstractCollection
- Parameters:
dec - The decoder to read from.
toString
public String toString(String offset)
- Description copied from class:
X509Extension
- Returns a human-readable String representation of this extension with an
offset String.
- Overrides:
toString in class X509Extension
- Following copied from class:
codec.x509.X509Extension
- Parameters:
offset - String that will be put before each line of output
Copyright © Fraunhofer Gesellschaft. All Rights Reserved.