com.ibm.security12.sun.security.x509
Class CertificatePolicyMap

java.lang.Object
  |
  +--com.ibm.security12.sun.security.x509.CertificatePolicyMap

public class CertificatePolicyMap
extends Object

Represent the CertificatePolicyMap ASN.1 object.

Version:
1.7
Author:
Amit Kapoor, Hemma Prafullchandra

Constructor Summary
CertificatePolicyMap(CertificatePolicyId issuer, CertificatePolicyId subject)
          Create a CertificatePolicyMap with the passed CertificatePolicyId's.
CertificatePolicyMap(DerValue val)
          Create the CertificatePolicyMap from the DER encoded value.
 
Method Summary
 void encode(DerOutputStream out)
          Write the CertificatePolicyMap to the DerOutputStream.
 CertificatePolicyId getIssuerIdentifier()
          Return the issuer CA part of the policy map.
 CertificatePolicyId getSubjectIdentifier()
          Return the subject CA part of the policy map.
 String toString()
          Returns a printable representation of the CertificatePolicyId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CertificatePolicyMap

public CertificatePolicyMap(CertificatePolicyId issuer,
                            CertificatePolicyId subject)
Create a CertificatePolicyMap with the passed CertificatePolicyId's.
Parameters:
issuer - the CertificatePolicyId for the issuer CA.
subject - the CertificatePolicyId for the subject CA.

CertificatePolicyMap

public CertificatePolicyMap(DerValue val)
                     throws IOException
Create the CertificatePolicyMap from the DER encoded value.
Parameters:
val - the DER encoded value of the same.
Method Detail

getIssuerIdentifier

public CertificatePolicyId getIssuerIdentifier()
Return the issuer CA part of the policy map.

getSubjectIdentifier

public CertificatePolicyId getSubjectIdentifier()
Return the subject CA part of the policy map.

toString

public String toString()
Returns a printable representation of the CertificatePolicyId.
Overrides:
toString in class Object

encode

public void encode(DerOutputStream out)
            throws IOException
Write the CertificatePolicyMap to the DerOutputStream.
Parameters:
out - the DerOutputStream to write the object to.
Throws:
IOException - on errors.