org.apache.geronimo.util.asn1.x509
Class PolicyQualifierInfo

java.lang.Object
  extended by org.apache.geronimo.util.asn1.ASN1Encodable
      extended by org.apache.geronimo.util.asn1.x509.PolicyQualifierInfo
All Implemented Interfaces:
DEREncodable

public class PolicyQualifierInfo
extends ASN1Encodable

Policy qualifiers, used in the X509V3 CertificatePolicies extension.

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


Constructor Summary
PolicyQualifierInfo(ASN1Sequence as)
          Creates a new PolicyQualifierInfo instance.
PolicyQualifierInfo(DERObjectIdentifier policyQualifierId, DEREncodable qualifier)
          Creates a new PolicyQualifierInfo instance.
PolicyQualifierInfo(String cps)
          Creates a new PolicyQualifierInfo containing a cPSuri qualifier.
 
Method Summary
static PolicyQualifierInfo getInstance(Object as)
           
 DERObject toASN1Object()
          Returns a DER-encodable representation of this instance.
 
Methods inherited from class org.apache.geronimo.util.asn1.ASN1Encodable
equals, getDERObject, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyQualifierInfo

public PolicyQualifierInfo(DERObjectIdentifier policyQualifierId,
                           DEREncodable qualifier)
Creates a new PolicyQualifierInfo instance.

Parameters:
policyQualifierId - a PolicyQualifierId value
qualifier - the qualifier, defined by the above field.

PolicyQualifierInfo

public PolicyQualifierInfo(String cps)
Creates a new PolicyQualifierInfo containing a cPSuri qualifier.

Parameters:
cps - the CPS (certification practice statement) uri as a String.

PolicyQualifierInfo

public PolicyQualifierInfo(ASN1Sequence as)
Creates a new PolicyQualifierInfo instance.

Parameters:
as - PolicyQualifierInfo X509 structure encoded as an ASN1Sequence.
Method Detail

getInstance

public static PolicyQualifierInfo getInstance(Object as)

toASN1Object

public DERObject toASN1Object()
Returns a DER-encodable representation of this instance.

Specified by:
toASN1Object in class ASN1Encodable
Returns:
a DERObject value


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.