Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.security.cert
Class PolicyQualifierInfo  view PolicyQualifierInfo download PolicyQualifierInfo.java

java.lang.Object
  extended byjava.security.cert.PolicyQualifierInfo

public final class PolicyQualifierInfo
extends java.lang.Object

The PolicyQualifierInfo X.509 certificate extension. PolicyQualifierInfo objects are represented by the ASN.1 structure:

 PolicyQualifierInfo ::= SEQUENCE {
    policyQualifierId   PolicyQualifierId,
    qualifier           ANY DEFINED BY policyQualifierId
 }

 PolicyQualifierId ::= OBJECT IDENTIFIER
 

Since:
JDK 1.4

Field Summary
private  byte[] encoded
          The DER encoded form of this object.
private  gnu.java.security.OID oid
          The policyQualifierId field.
private  gnu.java.security.der.DERValue qualifier
          The DER encoded form of the qualifier field.
 
Constructor Summary
PolicyQualifierInfo(byte[] encoded)
          Create a new PolicyQualifierInfo object from the DER encoded form passed in the byte array.
 
Method Summary
 byte[] getEncoded()
          Returns the DER encoded form of this object; the contents of the returned byte array are equivalent to those that were passed to the constructor.
 byte[] getPolicyQualifier()
          Get the qualifier field of this object, as a DER encoded byte array.
 java.lang.String getPolicyQualifierId()
          Returns the policyQualifierId field of this structure, as a dotted-decimal representation of the object identifier.
 java.lang.String toString()
          Returns a printable string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

oid

private gnu.java.security.OID oid
The policyQualifierId field.


encoded

private byte[] encoded
The DER encoded form of this object.


qualifier

private gnu.java.security.der.DERValue qualifier
The DER encoded form of the qualifier field.

Constructor Detail

PolicyQualifierInfo

public PolicyQualifierInfo(byte[] encoded)
                    throws java.io.IOException
Create a new PolicyQualifierInfo object from the DER encoded form passed in the byte array. The argument is copied.

The ASN.1 form of PolicyQualifierInfo is:

PolicyQualifierInfo ::= SEQUENCE {
   policyQualifierId     PolicyQualifierId,
   qualifier             ANY DEFINED BY policyQualifierId
}

PolicyQualifierId ::= OBJECT IDENTIFIER

Method Detail

getPolicyQualifierId

public java.lang.String getPolicyQualifierId()
Returns the policyQualifierId field of this structure, as a dotted-decimal representation of the object identifier.


getEncoded

public byte[] getEncoded()
Returns the DER encoded form of this object; the contents of the returned byte array are equivalent to those that were passed to the constructor. The byte array is cloned every time this method is called.


getPolicyQualifier

public byte[] getPolicyQualifier()
Get the qualifier field of this object, as a DER encoded byte array. The byte array returned is cloned every time this method is called.


toString

public java.lang.String toString()
Returns a printable string representation of this object.