FileDocCategorySizeDatePackage
PolicyInformation.javaAPI DocAndroid 1.5 API3790Wed May 06 22:41:06 BST 2009org.apache.harmony.security.x509

PolicyInformation

public class PolicyInformation extends Object
The class encapsulates the ASN.1 DER encoding/decoding work with PolicyInformation structure which is a subpart of certificatePolicies (as specified in RFC 3280 - Internet X.509 Public Key Infrastructure. Certificate and Certificate Revocation List (CRL) Profile. http://www.ietf.org/rfc/rfc3280.txt):
PolicyInformation ::= SEQUENCE {
policyIdentifier CertPolicyId,
policyQualifiers SEQUENCE SIZE (1..MAX) OF
PolicyQualifierInfo OPTIONAL
}
TODO: This class is not fully implemented, implemented only work with OIDs.

Fields Summary
private String
policyIdentifier
private byte[]
encoding
public static final org.apache.harmony.security.asn1.ASN1Sequence
ASN1
ASN.1 DER X.509 PolicyInformation encoder/decoder class.
Constructors Summary
public PolicyInformation(String policyIdentifier)
TODO

param
policyIdentifier: String

        this.policyIdentifier = policyIdentifier;
    
Methods Summary
public voiddumpValue(java.lang.StringBuffer buffer)
Places the string representation of extension value into the StringBuffer object.

        buffer.append("Policy Identifier [") //$NON-NLS-1$
            .append(policyIdentifier).append(']");
    
public byte[]getEncoded()
Returns ASN.1 encoded form of this X.509 PolicyInformation value.

return
a byte array containing ASN.1 encode form.

        if (encoding == null) {
            encoding = ASN1.encode(this);
        }
        return encoding;
    
public java.lang.StringgetPolicyIdentifier()
Returns the value of policyIdentifier field of the structure.

return
policyIdentifier

        return policyIdentifier;