Class CertificatePolicies

    • Constructor Detail

      • CertificatePolicies

        public CertificatePolicies​(PolicyInformation name)
        Construct a CertificatePolicies object containing one PolicyInformation.
        Parameters:
        name - the name to be contained.
      • CertificatePolicies

        public CertificatePolicies​(PolicyInformation[] policyInformation)
    • Method Detail

      • fromExtensions

        public static CertificatePolicies fromExtensions​(Extensions extensions)
        Retrieve a CertificatePolicies for a passed in Extensions object, if present.
        Parameters:
        extensions - the extensions object to be examined.
        Returns:
        the CertificatePolicies, null if the extension is not present.
      • toASN1Primitive

        public ASN1Primitive toASN1Primitive()
        Produce an object suitable for an ASN1OutputStream.
         CertificatePolicies ::= SEQUENCE SIZE {1..MAX} OF PolicyInformation
         
        Specified by:
        toASN1Primitive in interface ASN1Encodable
        Specified by:
        toASN1Primitive in class ASN1Object
        Returns:
        a primitive representation of this object.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object