Class RequestedCertificate

java.lang.Object
org.springframework.vault.core.certificate.domain.RequestedCertificate
Direct Known Subclasses:
RequestedCertificateBundle, RequestedTrustAnchor

public abstract class RequestedCertificate extends Object
Represents a requested certificate from a Vault PKI.
Since:
4.1
Author:
Mark Paluch
  • Method Details

    • issue

      public static RequestedCertificateBundle issue(String name, String role, VaultCertificateRequest certificateRequest)
      Create a renewable RequestedSecret at path. 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 the RequestedCertificate, 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

      public static RequestedTrustAnchor trustAnchor(String name)
      Create a RequestedTrustAnchor given name for the default issuer. The trust anchor requests a CA Certificate.
      Parameters:
      name - a descriptive name for the RequestedCertificate, must not be null or empty.
      Returns:
      the renewable RequestedSecret.
    • trustAnchor

      public static RequestedTrustAnchor trustAnchor(String name, String issuer)
      Create a RequestedTrustAnchor given name and issuer. The trust anchor requests a CA Certificate.
      Parameters:
      name - a descriptive name for the RequestedCertificate, 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

      public String getName()
      Returns:
      name of the requested certificate.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object