Package io.quarkus.vault.pki
Class SignIntermediateCAOptions
- java.lang.Object
-
- io.quarkus.vault.pki.SignIntermediateCAOptions
-
public class SignIntermediateCAOptions extends Object
Options for signing an intermediate CA certificate.
-
-
Field Summary
Fields Modifier and Type Field Description BooleanexcludeCommonNameFromSubjectAlternativeNamesFlag determining if the Common Name (CN) of the subject will be included by default in the Subject Alternative Names of issued certificates.DataFormatformatSpecifies returned format of certificate data.List<String>ipSubjectAlternativeNamesSpecifies IP Subject Alternative Names.IntegermaxPathLengthSpecifies the maximum path length for generated certificate.List<String>otherSubjectAlternativeNamesSpecifies custom OID/UTF8-string Subject Alternative Names.List<String>permittedDnsDomainsDNS domains for which certificates are allowed to be issued or signed by this CA certificate.List<String>subjectAlternativeNamesSpecifies Subject Alternative Names.StringsubjectCommonNameSpecifies Common Name (CN) of the subject.StringsubjectCountrySpecifies Country (C) of the subject.StringsubjectLocalitySpecifies Locality (L) of the subject.StringsubjectOrganizationSpecifies Organization (O) of the subject.StringsubjectOrganizationalUnitSpecifies Organizational Unit (OU) of the subject.StringsubjectPostalCodeSpecifies Postal Code of the subject.StringsubjectProvinceSpecifies Province (ST) of the subject.StringsubjectSerialNumberSpecifies the Serial Number (SERIALNUMBER) of the subject.StringsubjectStreetAddressSpecifies Street Address of the subject.StringtimeToLiveSpecifies time-to-live.List<String>uriSubjectAlternativeNamesSpecifies URI Subject Alternative Names.BooleanuseCSRValuesFlag determining if CSR values are used instead of configured default values.
-
Constructor Summary
Constructors Constructor Description SignIntermediateCAOptions()
-
Method Summary
-
-
-
Field Detail
-
subjectCommonName
public String subjectCommonName
Specifies Common Name (CN) of the subject.
-
subjectOrganization
public String subjectOrganization
Specifies Organization (O) of the subject.
-
subjectOrganizationalUnit
public String subjectOrganizationalUnit
Specifies Organizational Unit (OU) of the subject.
-
subjectStreetAddress
public String subjectStreetAddress
Specifies Street Address of the subject.
-
subjectPostalCode
public String subjectPostalCode
Specifies Postal Code of the subject.
-
subjectLocality
public String subjectLocality
Specifies Locality (L) of the subject.
-
subjectProvince
public String subjectProvince
Specifies Province (ST) of the subject.
-
subjectCountry
public String subjectCountry
Specifies Country (C) of the subject.
-
subjectSerialNumber
public String subjectSerialNumber
Specifies the Serial Number (SERIALNUMBER) of the subject.
-
subjectAlternativeNames
public List<String> subjectAlternativeNames
Specifies Subject Alternative Names.These can be host names or email addresses; they will be parsed into their respective fields.
-
excludeCommonNameFromSubjectAlternativeNames
public Boolean excludeCommonNameFromSubjectAlternativeNames
Flag determining if the Common Name (CN) of the subject will be included by default in the Subject Alternative Names of issued certificates.
-
ipSubjectAlternativeNames
public List<String> ipSubjectAlternativeNames
Specifies IP Subject Alternative Names.
-
uriSubjectAlternativeNames
public List<String> uriSubjectAlternativeNames
Specifies URI Subject Alternative Names.
-
otherSubjectAlternativeNames
public List<String> otherSubjectAlternativeNames
Specifies custom OID/UTF8-string Subject Alternative Names.The format is the same as OpenSSL:
; : where the only current valid type is UTF8.
-
timeToLive
public String timeToLive
Specifies time-to-live.Value is specified as a string duration with time suffix. Hour is the largest supported suffix.
-
maxPathLength
public Integer maxPathLength
Specifies the maximum path length for generated certificate.
-
useCSRValues
public Boolean useCSRValues
Flag determining if CSR values are used instead of configured default values.Enables the following handling:
- Subject information, including names and alternate names, will be preserved from the CSR.
- Any key usages (for instance, non-repudiation) requested in the CSR will be added to the set of CA key usages.
- Extensions requested in the CSR will be copied into the issued certificate.
-
permittedDnsDomains
public List<String> permittedDnsDomains
DNS domains for which certificates are allowed to be issued or signed by this CA certificate. Subdomains are allowed, as per RFC.
-
format
public DataFormat format
Specifies returned format of certificate data. If unspecified it defaults toDataFormat.PEM
-
-
Method Detail
-
setSubjectCommonName
public SignIntermediateCAOptions setSubjectCommonName(String subjectCommonName)
-
setSubjectOrganization
public SignIntermediateCAOptions setSubjectOrganization(String subjectOrganization)
-
setSubjectOrganizationalUnit
public SignIntermediateCAOptions setSubjectOrganizationalUnit(String subjectOrganizationalUnit)
-
setSubjectStreetAddress
public SignIntermediateCAOptions setSubjectStreetAddress(String subjectStreetAddress)
-
setSubjectPostalCode
public SignIntermediateCAOptions setSubjectPostalCode(String subjectPostalCode)
-
setSubjectLocality
public SignIntermediateCAOptions setSubjectLocality(String subjectLocality)
-
setSubjectProvince
public SignIntermediateCAOptions setSubjectProvince(String subjectProvince)
-
setSubjectCountry
public SignIntermediateCAOptions setSubjectCountry(String subjectCountry)
-
setSubjectSerialNumber
public SignIntermediateCAOptions setSubjectSerialNumber(String subjectSerialNumber)
-
setSubjectAlternativeNames
public SignIntermediateCAOptions setSubjectAlternativeNames(List<String> subjectAlternativeNames)
-
setExcludeCommonNameFromSubjectAlternativeNames
public SignIntermediateCAOptions setExcludeCommonNameFromSubjectAlternativeNames(Boolean excludeCommonNameFromSubjectAlternativeNames)
-
setIpSubjectAlternativeNames
public SignIntermediateCAOptions setIpSubjectAlternativeNames(List<String> ipSubjectAlternativeNames)
-
setUriSubjectAlternativeNames
public SignIntermediateCAOptions setUriSubjectAlternativeNames(List<String> uriSubjectAlternativeNames)
-
setOtherSubjectAlternativeNames
public SignIntermediateCAOptions setOtherSubjectAlternativeNames(List<String> otherSubjectAlternativeNames)
-
setTimeToLive
public SignIntermediateCAOptions setTimeToLive(String timeToLive)
-
setMaxPathLength
public SignIntermediateCAOptions setMaxPathLength(Integer maxPathLength)
-
setUseCSRValues
public SignIntermediateCAOptions setUseCSRValues(Boolean useCSRValues)
-
setPermittedDnsDomains
public SignIntermediateCAOptions setPermittedDnsDomains(List<String> permittedDnsDomains)
-
setFormat
public SignIntermediateCAOptions setFormat(DataFormat format)
-
-