Class CertificateParameters

java.lang.Object
org.springframework.credhub.support.KeyParameters
org.springframework.credhub.support.certificate.CertificateParameters

public final class CertificateParameters extends KeyParameters
Parameters for generating a new certificate credential.
Author:
Scott Frederick
  • Method Details

    • getCommonName

      public String getCommonName()
      Get the value of the common name parameter that will be used when generating the certificate.
      Returns:
      the value of the parameter; will be null if not explicitly set
    • getAlternativeNames

      public String[] getAlternativeNames()
      Get the value of the alternative names parameter that will be used when generating the certificate.
      Returns:
      the value of the parameter; will be null if not explicitly set
    • getOrganization

      public String getOrganization()
      Get the value of the organization parameter that will be used when generating the certificate.
      Returns:
      the value of the parameter; will be null if not explicitly set
    • getOrganizationUnit

      public String getOrganizationUnit()
      Get the value of the organization unit parameter that will be used when generating the certificate.
      Returns:
      the value of the parameter; will be null if not explicitly set
    • getLocality

      public String getLocality()
      Get the value of the locality parameter that will be used when generating the certificate.
      Returns:
      the value of the parameter; will be null if not explicitly set
    • getState

      public String getState()
      Get the value of the state parameter that will be used when generating the certificate.
      Returns:
      the value of the parameter; will be null if not explicitly set
    • getCountry

      public String getCountry()
      Get the value of the country parameter that will be used when generating the certificate.
      Returns:
      the value of the parameter; will be null if not explicitly set
    • getCa

      public String getCa()
      Get the value of the certificate authority parameter that will be used when generating the certificate.
      Returns:
      the value of the parameter; will be null if not explicitly set
    • getIsCa

      public Boolean getIsCa()
      Get the value of the flag that indicates whether the generated certificate is a certificate authority.
      Returns:
      the value of the parameter; will be null if not explicitly set
    • getSelfSign

      public Boolean getSelfSign()
      Get the value of the flag that indicates whether the generated certificate is self-signed.
      Returns:
      the value of the parameter; will be null if not explicitly set
    • getDuration

      public Integer getDuration()
      Get the value of the duration (in days) parameter that will be used when generating the certificate.
      Returns:
      the value of the parameter; will be null if not explicitly set
    • getKeyUsage

      public KeyUsage[] getKeyUsage()
      Get the value of the key usage extensions that will be used when generating the certificate.
      Returns:
      the value of the parameter; will be null if not explicitly set
    • getExtendedKeyUsage

      public ExtendedKeyUsage[] getExtendedKeyUsage()
      Get the value of the extended key usage extensions that will be used when generating the certificate.
      Returns:
      the value of the parameter; will be null if not explicitly set
    • builder

      Create a builder that provides a fluent API for providing the values required to construct a CertificateParameters.
      Returns:
      a builder