Class CertificationRequest

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class CertificationRequest
    extends ASN1Object
       CertificationRequest ::= SEQUENCE {
         certificationRequestInfo  SEQUENCE {
           version                   INTEGER,
           subject                   Name,
           subjectPublicKeyInfo      SEQUENCE {
              algorithm                 AlgorithmIdentifier,
              subjectPublicKey          BIT STRING },
           attributes                [0] IMPLICIT SET OF Attribute },
        signatureAlgorithm        AlgorithmIdentifier,
        signature                 BIT STRING
      }
     
    • Method Detail

      • getVersion

        public java.math.BigInteger getVersion()
      • getSubject

        public X500Name getSubject()
      • getAttributes

        public ASN1Set getAttributes()
      • getSubjectPublicKey

        public DERBitString getSubjectPublicKey()
      • parsePublicKey

        public ASN1Primitive parsePublicKey()
                                     throws java.io.IOException
        If the public key is an encoded object this will return the ASN.1 primitives encoded - if the bitstring can't be decoded this routine throws an IOException.
        Returns:
        the public key as an ASN.1 primitive.
        Throws:
        java.io.IOException - - if the bit string doesn't represent a DER encoded object.