FileDocCategorySizeDatePackage
PolicyMappings.javaAPI DocAzureus 3.0.3.41885Tue Jun 08 05:12:56 BST 2004org.bouncycastle.asn1.x509

PolicyMappings

public class PolicyMappings extends org.bouncycastle.asn1.ASN1Encodable
PolicyMappings V3 extension, described in RFC3280.
PolicyMappings ::= SEQUENCE SIZE (1..MAX) OF SEQUENCE {
issuerDomainPolicy CertPolicyId,
subjectDomainPolicy CertPolicyId }
see
RFC 3280, section 4.2.1.6

Fields Summary
org.bouncycastle.asn1.ASN1Sequence
seq
Constructors Summary
public PolicyMappings(org.bouncycastle.asn1.ASN1Sequence seq)
Creates a new PolicyMappings instance.

param
seq an ASN1Sequence constructed as specified in RFC 3280


                      
       
      
         this.seq = seq;
      
public PolicyMappings(Hashtable mappings)
Creates a new PolicyMappings instance.

param
mappings a HashMap value that maps String oids to other String oids.

         ASN1EncodableVector dev = new ASN1EncodableVector();
         Enumeration it = mappings.keys();

         while (it.hasMoreElements()) {
            String idp = (String) it.nextElement();
            String sdp = (String) mappings.get(idp);
            ASN1EncodableVector dv = new ASN1EncodableVector();
            dv.add(new DERObjectIdentifier(idp));
            dv.add(new DERObjectIdentifier(sdp));
            dev.add(new DERSequence(dv));
         }

         seq = new DERSequence(dev);
      
Methods Summary
public org.bouncycastle.asn1.DERObjecttoASN1Object()

         return seq;