Class CertificateParameters
java.lang.Object
org.springframework.credhub.support.KeyParameters
org.springframework.credhub.support.certificate.CertificateParameters
Parameters for generating a new certificate credential.
- Author:
- Scott Frederick
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder that provides a fluent API for constructingCertificateParameters.CertificateParametersBuilder
s. -
Field Summary
Fields inherited from class org.springframework.credhub.support.KeyParameters
keyLength
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that provides a fluent API for providing the values required to construct aCertificateParameters
.String[]
Get the value of the alternative names parameter that will be used when generating the certificate.getCa()
Get the value of the certificate authority parameter that will be used when generating the certificate.Get the value of the common name parameter that will be used when generating the certificate.Get the value of the country parameter that will be used when generating the certificate.Get the value of the duration (in days) parameter that will be used when generating the certificate.Get the value of the extended key usage extensions that will be used when generating the certificate.getIsCa()
Get the value of the flag that indicates whether the generated certificate is a certificate authority.KeyUsage[]
Get the value of the key usage extensions that will be used when generating the certificate.Get the value of the locality parameter that will be used when generating the certificate.Get the value of the organization parameter that will be used when generating the certificate.Get the value of the organization unit parameter that will be used when generating the certificate.Get the value of the flag that indicates whether the generated certificate is self-signed.getState()
Get the value of the state parameter that will be used when generating the certificate.Methods inherited from class org.springframework.credhub.support.KeyParameters
getKeyLength
-
Method Details
-
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
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
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
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
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
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
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
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
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
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
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
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
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 aCertificateParameters
.- Returns:
- a builder
-