Class PolicyInformation

java.lang.Object
org.apache.harmony.security.x509.PolicyInformation

public final 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.
  • Field Details

    • ASN1

      public static final ASN1Sequence ASN1
      ASN.1 DER X.509 PolicyInformation encoder/decoder class.
  • Constructor Details

    • PolicyInformation

      public PolicyInformation​(String policyIdentifier)
  • Method Details

    • getPolicyIdentifier

      public String getPolicyIdentifier()
      Returns the value of policyIdentifier field of the structure.
    • getEncoded

      public byte[] getEncoded()
      Returns ASN.1 encoded form of this X.509 PolicyInformation value.
    • dumpValue

      public void dumpValue​(StringBuilder sb)