Class BcPKCS10CertificationRequest

    • Constructor Detail

      • BcPKCS10CertificationRequest

        public BcPKCS10CertificationRequest​(org.bouncycastle.asn1.pkcs.CertificationRequest certificationRequest)
        Wrap a parsed CertificationRequest.
        Parameters:
        certificationRequest - the underlying request.
      • BcPKCS10CertificationRequest

        public BcPKCS10CertificationRequest​(byte[] encoding)
                                     throws java.io.IOException
        Parse a BER/DER encoded PKCS#10 request.
        Parameters:
        encoding - the encoded request bytes.
        Throws:
        java.io.IOException - if the data is not a valid CertificationRequest.
    • Method Detail

      • getPublicKey

        public org.bouncycastle.crypto.params.AsymmetricKeyParameter getPublicKey()
                                                                           throws PKCSException
        Return the public key carried by the request as a lightweight AsymmetricKeyParameter.
        Returns:
        the request's public key.
        Throws:
        PKCSException - if the embedded SubjectPublicKeyInfo cannot be decoded.