Enclosing class:
IssueCertificate

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

    • toCertificate

      public X509Certificate toCertificate()
      Get the certificate as an X.509 certificate.
      Returns:
      CA 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