Package io.quarkus.vault.pki
Class GenerateRootOptions
java.lang.Object
io.quarkus.vault.pki.GenerateRootOptions
Options for generating a self-signed root CA.
-
Field Summary
FieldsModifier and TypeFieldDescriptionFlag determining if the Common Name (CN) of the subject will be included by default in the Subject Alternative Names of issued certificates.booleanFlag determining if the generated private key should be exported or kept internally.Specifies returned format of certificate & private key data.Specifies IP Subject Alternative Names.Specifies the number of bits for the generated private key.Specifies the desired type of private key to generate, RSA or EC.Specifies the maximum path length for generated certificate.Specifies custom OID/UTF8-string Subject Alternative Names.DNS domains for which certificates are allowed to be issued or signed by this CA certificate.Specifies encoding of private key data.Specifies Subject Alternative Names.Specifies Common Name (CN) of the subject.Specifies Country (C) of the subject.Specifies Locality (L) of the subject.Specifies Organization (O) of the subject.Specifies Organizational Unit (OU) of the subject.Specifies Postal Code of the subject.Specifies Province (ST) of the subject.Specifies the Serial Number (SERIALNUMBER) of the subject.Specifies Street Address of the subject.Specifies time-to-live.Specifies URI Subject Alternative Names. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetExcludeCommonNameFromSubjectAlternativeNames(Boolean excludeCommonNameFromSubjectAlternativeNames) setExportPrivateKey(boolean exportPrivateKey) setFormat(DataFormat format) setIpSubjectAlternativeNames(List<String> ipSubjectAlternativeNames) setKeyBits(Integer keyBits) setKeyType(CertificateKeyType keyType) setMaxPathLength(Integer maxPathLength) setOtherSubjectAlternativeNames(List<String> otherSubjectAlternativeNames) setPermittedDnsDomains(List<String> permittedDnsDomains) setPrivateKeyEncoding(PrivateKeyEncoding privateKeyEncoding) setSubjectAlternativeNames(List<String> subjectAlternativeNames) setSubjectCommonName(String subjectCommonName) setSubjectCountry(String subjectCountry) setSubjectLocality(String subjectLocality) setSubjectOrganization(String subjectOrganization) setSubjectOrganizationalUnit(String subjectOrganizationalUnit) setSubjectPostalCode(String subjectPostalCode) setSubjectProvince(String subjectProvince) setSubjectSerialNumber(String subjectSerialNumber) setSubjectStreetAddress(String subjectStreetAddress) setTimeToLive(String timeToLive) setUriSubjectAlternativeNames(List<String> uriSubjectAlternativeNames)
-
Field Details
-
subjectCommonName
Specifies Common Name (CN) of the subject. -
subjectOrganization
Specifies Organization (O) of the subject. -
subjectOrganizationalUnit
Specifies Organizational Unit (OU) of the subject. -
subjectStreetAddress
Specifies Street Address of the subject. -
subjectPostalCode
Specifies Postal Code of the subject. -
subjectLocality
Specifies Locality (L) of the subject. -
subjectProvince
Specifies Province (ST) of the subject. -
subjectCountry
Specifies Country (C) of the subject. -
subjectSerialNumber
Specifies the Serial Number (SERIALNUMBER) of the subject. -
subjectAlternativeNames
Specifies Subject Alternative Names.These can be host names or email addresses; they will be parsed into their respective fields.
-
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
Specifies IP Subject Alternative Names. -
uriSubjectAlternativeNames
Specifies URI Subject Alternative Names. -
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
Specifies time-to-live.Value is specified as a string duration with time suffix. Hour is the largest supported suffix.
-
keyType
Specifies the desired type of private key to generate, RSA or EC. -
keyBits
Specifies the number of bits for the generated private key.If
keyTypeisCertificateKeyType.EC, this value must be specified as well. -
exportPrivateKey
public boolean exportPrivateKeyFlag determining if the generated private key should be exported or kept internally. -
maxPathLength
Specifies the maximum path length for generated certificate. -
permittedDnsDomains
DNS domains for which certificates are allowed to be issued or signed by this CA certificate. Subdomains are allowed, as per RFC. -
format
Specifies returned format of certificate & private key data. If unspecified it defaults toDataFormat.PEM -
privateKeyEncoding
Specifies encoding of private key data. If unspecified it defaults toPrivateKeyEncoding.PKCS8.
-
-
Constructor Details
-
GenerateRootOptions
public GenerateRootOptions()
-
-
Method Details
-
setSubjectCommonName
-
setSubjectOrganization
-
setSubjectOrganizationalUnit
-
setSubjectStreetAddress
-
setSubjectPostalCode
-
setSubjectLocality
-
setSubjectProvince
-
setSubjectCountry
-
setSubjectSerialNumber
-
setSubjectAlternativeNames
-
setExcludeCommonNameFromSubjectAlternativeNames
public GenerateRootOptions setExcludeCommonNameFromSubjectAlternativeNames(Boolean excludeCommonNameFromSubjectAlternativeNames) -
setIpSubjectAlternativeNames
-
setUriSubjectAlternativeNames
-
setOtherSubjectAlternativeNames
public GenerateRootOptions setOtherSubjectAlternativeNames(List<String> otherSubjectAlternativeNames) -
setTimeToLive
-
setKeyType
-
setKeyBits
-
setExportPrivateKey
-
setMaxPathLength
-
setPermittedDnsDomains
-
setFormat
-
setPrivateKeyEncoding
-