Class PKCS10CertificateSigningRequest


  • public final class PKCS10CertificateSigningRequest
    extends Object
    A PKCS #10 certificate signing request defined in RFC 2986 as:
          CertificationRequest ::= SEQUENCE {
              certificationRequestInfo    CertificationRequestInfo,
              signatureAlgorithm          AlgorithmIdentifier{{ SignatureAlgorithms }},
              signature                   BIT STRING
          }
    
          CertificationRequestInfo ::= SEQUENCE {
              version         INTEGER { v1(0) } (v1,...),
              subject         Name,
              subjectPKInfo   SubjectPublicKeyInfo{{ PKInfoAlgorithms }},
              attributes      [0] Attributes{{ CRIAttributes }}
          }
    
          Attributes { ATTRIBUTE:IOSet } ::= SET OF Attribute{{ IOSet }}
    
          Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE {
              type        ATTRIBUTE.&id({IOSet}),
              values      SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{\@type})
          }
    
          AlgorithmIdentifier {ALGORITHM:IOSet } ::= SEQUENCE {
              algorithm       ALGORITHM.&id({IOSet}),
              parameters      ALGORITHM.&Type({IOSet}{@algorithm}) OPTIONAL
          }
     
    Since:
    1.2.0
    Author:
    Farah Juma
    • Method Detail

      • getEncoded

        public byte[] getEncoded()
        Get this PKCS #10 certificate signing request in binary format.
        Returns:
        this PKCS #10 certificate signing request in binary format
      • getPem

        public byte[] getPem()
        Get this PKCS #10 certificate signing request in PEM format.
        Returns:
        this PKCS #10 certificate signing request in PEM format
      • getPublicKey

        public PublicKey getPublicKey()
        Get the public key associated with this PKCS #10 certificate signing request.
        Returns:
        the public key associated with this PKCS #10 certificate signing request
      • getSubjectDn

        public X500Principal getSubjectDn()
        Get the subject DN associated with this PKCS #10 certificate signing request.
        Returns:
        the subject DN associated with this PKCS #10 certificate signing request
      • getExtensions

        public List<X509CertificateExtension> getExtensions()
        Get the X.509 certificate extensions included in this PKCS #10 certificate signing request.
        Returns:
        the X.509 certificate extensions included in this PKCS #10 certificate signing request