Class IssueCertificate.Response
- java.lang.Object
-
- io.helidon.integrations.common.rest.ApiJsonParser
-
- io.helidon.integrations.common.rest.ApiResponse
-
- io.helidon.integrations.common.rest.ApiEntityResponse
-
- io.helidon.integrations.vault.VaultResponse
-
- io.helidon.integrations.vault.secrets.pki.IssueCertificate.Response
-
- Enclosing class:
- IssueCertificate
public static final class IssueCertificate.Response extends VaultResponse
Response object parsed from JSON returned by theRestApi
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
certificate()
Certificate bytes, whenformat()
is set toPkiFormat.PEM_BUNDLE
, it contains private key as well.Instant
expiration()
Certificate expiration instant.PkiFormat
format()
Format of the bytes.byte[]
issuingCa()
Issuing certification authority certificate bytes.byte[]
privateKey()
Private key bytes.String
privateKeyType()
Type of the private key (such asrsa
.String
serialNumber()
Serial number of the certificate.X509Certificate
toCertificate()
Get the certificate as an X.509 certificate.-
Methods inherited from class io.helidon.integrations.vault.VaultResponse
vaultRequestId
-
Methods inherited from class io.helidon.integrations.common.rest.ApiResponse
headers, requestId, status
-
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonParser
isPresent, stringValue, toBoolean, toBytesBase64, toDouble, toInstant, toInt, toList, toLong, toMap, toObject, toString
-
-
-
-
Method Detail
-
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 asrsa
.- Returns:
- private key type
-
serialNumber
public String serialNumber()
Serial number of the certificate.- Returns:
- serial number
-
certificate
public byte[] certificate()
Certificate bytes, whenformat()
is set toPkiFormat.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
-
-