public class VaultPkiTemplate extends Object implements VaultPkiOperations
VaultPkiOperations
.Constructor and Description |
---|
VaultPkiTemplate(VaultOperations vaultOperations,
String path)
|
Modifier and Type | Method and Description |
---|---|
VaultCertificateResponse |
issueCertificate(String roleName,
VaultCertificateRequest certificateRequest)
Requests a certificate bundle (private key and certificate) from Vault's PKI
backend given a
roleName and VaultCertificateRequest . |
public VaultPkiTemplate(VaultOperations vaultOperations, String path)
vaultOperations
- must not be null.path
- must not be empty or null.public VaultCertificateResponse issueCertificate(String roleName, VaultCertificateRequest certificateRequest) throws VaultException
VaultPkiOperations
roleName
and VaultCertificateRequest
. The issuing
CA certificate is returned as well, so that only the root CA need be in a client's
trust store. Certificates use DER format and are base64 encoded.issueCertificate
in interface VaultPkiOperations
roleName
- must not be empty or null.certificateRequest
- must not be null.VaultCertificateResponse
containing a CertificateBundle
.VaultException
Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.