Class SignCsr.Response

  • Enclosing class:
    SignCsr

    public static final class SignCsr.Response
    extends VaultResponse
    Response object parsed from JSON returned by the RestApi.
    • Method Detail

      • toCertificate

        public X509Certificate toCertificate()
        Get the response as an X.509 certificate.
        Returns:
        certificate
      • format

        public PkiFormat format()
        Format of the bytes.
        Returns:
        format
      • privateKeyType

        public String privateKeyType()
        Type of the private key (such as rsa.
        Returns:
        private key type
      • serialNumber

        public String serialNumber()
        Serial number of the certificate.
        Returns:
        serial number
      • certificate

        public byte[] certificate()
        Certificate bytes, when format() is set to PkiFormat.PEM_BUNDLE, it contains private key as well.
        Returns:
        certificate bytes
      • issuingCa

        public byte[] issuingCa()
        Issuing certification authority certificate bytes.
        Returns:
        certificate bytes of issuing certification authority
      • privateKey

        public byte[] privateKey()
        Private key bytes.
        Returns:
        private key bytes.
      • expiration

        public Instant expiration()
        Certificate expiration instant.
        Returns:
        instant of expiration