The ASN.1 definition is as follows:
PolicyQualifierInfo ::= SEQUENCE {
policyQualifierId PolicyQualifierId,
qualifier ANY DEFINED BY policyQualifierId }
A certificate policies extension, if present in an X.509 version 3 certificate, contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID) and optional qualifiers. In an end-entity certificate, these policy information terms indicate the policy under which the certificate has been issued and the purposes for which the certificate may be used. In a CA certificate, these policy information terms limit the set of policies for certification paths which include this certificate.
A Set of PolicyQualifierInfo objects are returned
by the PolicyNode.
method. This allows applications with specific policy requirements to
process and validate each policy qualifier. Applications that need to
process policy qualifiers should explicitly set the
policyQualifiersRejected flag to false (by calling the
PKIXParameters. method) before validating
a certification path.
Note that the PKIX certification path validation algorithm specifies
that any policy qualifier in a certificate policies extension that is
marked critical must be processed and validated. Otherwise, the
certification path must be rejected. If the
policyQualifiersRejected flag is set to false, it is up to
the application to validate all policy qualifiers in this manner in order
to be PKIX compliant.
Concurrent Access
All PolicyQualifierInfo objects must be immutable and
thread-safe. That is, multiple threads may concurrently invoke the
methods defined in this class on a single PolicyQualifierInfo
object (or more than one) with no ill effects. Requiring
PolicyQualifierInfo objects to be immutable and thread-safe
allows them to be passed around to various pieces of code without
worrying about coordinating access.
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final byte[] | |
| private final String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | PolicyQualifierInfo(byte[]
a byte array containing the qualifier in DER encoding encoded)Creates an instance of |
| Modifier and Type | Method and Description |
|---|---|
| public final byte[] | Returns: the ASN.1 DER encoded bytes (nevernull).
Note that a copy is returned, so the data is cloned each time
this method is called.Returns the ASN.1 DER encoded form of this
|
| public final byte[] | Returns: the ASN.1 DER encoded bytes of thequalifier
field. Note that a copy is returned, so the data is cloned each
time this method is called.Returns the ASN.1 DER encoded form of the |
| public final String | Returns: the OID (nevernull)Returns the |
| public String | Returns: aString describing the contents of this
PolicyQualifierInfoOverrides java. Return a printable representation of this
|
| mData | back to summary |
|---|---|
| private final byte[] mData | |
| mEncoded | back to summary |
|---|---|
| private final byte[] mEncoded | |
| mId | back to summary |
|---|---|
| private final String mId | |
| pqiString | back to summary |
|---|---|
| private String pqiString | |
| PolicyQualifierInfo | back to summary |
|---|---|
| public PolicyQualifierInfo(byte[] encoded) throws IOException Creates an instance of
| |
| getEncoded | back to summary |
|---|---|
| public final byte[] getEncoded() Returns the ASN.1 DER encoded form of this
| |
| getPolicyQualifier | back to summary |
|---|---|
| public final byte[] getPolicyQualifier() Returns the ASN.1 DER encoded form of the
| |
| getPolicyQualifierId | back to summary |
|---|---|
| public final String getPolicyQualifierId() Returns the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return a printable representation of this
| |