Class RequestedCertificate
java.lang.Object
org.springframework.vault.core.certificate.domain.RequestedCertificate
- Direct Known Subclasses:
RequestedCertificateBundle,RequestedTrustAnchor
Represents a requested certificate from a Vault PKI.
- Since:
- 4.1
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()inthashCode()static RequestedCertificateBundleissue(String name, String role, VaultCertificateRequest certificateRequest) Create a renewableRequestedSecretatpath.toString()static RequestedTrustAnchortrustAnchor(String name) Create aRequestedTrustAnchorgivennamefor the default issuer.static RequestedTrustAnchortrustAnchor(String name, String issuer) Create aRequestedTrustAnchorgivennameandissuer.
-
Method Details
-
issue
public static RequestedCertificateBundle issue(String name, String role, VaultCertificateRequest certificateRequest) Create a renewableRequestedSecretatpath. A lease associated with this secret will be renewed if the lease is qualified for renewal. The lease is no longer valid after expiry.- Parameters:
name- a descriptive name for theRequestedCertificate, must not be null or empty.role- the role to issue the certificate against, must not be null or empty.certificateRequest- the certificate request describing the certificate to issue.- Returns:
- the renewable
RequestedSecret.
-
trustAnchor
Create aRequestedTrustAnchorgivennamefor the default issuer. The trust anchor requests a CACertificate.- Parameters:
name- a descriptive name for theRequestedCertificate, must not be null or empty.- Returns:
- the renewable
RequestedSecret.
-
trustAnchor
- Parameters:
name- a descriptive name for theRequestedCertificate, must not be null or empty.issuer- reference to an existing issuer, either by Vault-generated identifier, currently configured default issuer, or the name assigned to an issuer, must not be null or empty.- Returns:
- the renewable
RequestedSecret.
-
getName
- Returns:
- name of the requested certificate.
-
equals
-
hashCode
public int hashCode() -
toString
-