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
Response object parsed from JSON returned by the
RestApi
.-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Certificate bytes, whenformat()
is set toPkiFormat.PEM_BUNDLE
, it contains private key as well.Certificate expiration instant.format()
Format of the bytes.byte[]
Issuing certification authority certificate bytes.byte[]
Private key bytes.Type of the private key (such asrsa
.Serial number of the certificate.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 Details
-
toCertificate
Get the certificate as an X.509 certificate.- Returns:
- CA certificate
-
format
Format of the bytes.- Returns:
- format
-
privateKeyType
Type of the private key (such asrsa
.- Returns:
- private key type
-
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
Certificate expiration instant.- Returns:
- instant of expiration
-