Package io.quarkus.vault.pki
Class GenerateIntermediateCSROptions
java.lang.Object
io.quarkus.vault.pki.GenerateIntermediateCSROptions
Options for generating a CSR for an intermediate 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 CSR & 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 custom OID/UTF8-string Subject Alternative Names.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 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) setOtherSubjectAlternativeNames(List<String> otherSubjectAlternativeNames) 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) 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. Must match RoleOptions.allowedOtherSubjectAlternativeNamesspecified on the role. -
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. -
format
Specifies returned format of CSR & private key data. If unspecified it defaults toDataFormat.PEM -
privateKeyEncoding
Specifies encoding of private key data. If unspecified it defaults toPrivateKeyEncoding.PKCS8. -
exportPrivateKey
public boolean exportPrivateKeyFlag determining if the generated private key should be exported or kept internally.
-
-
Constructor Details
-
GenerateIntermediateCSROptions
public GenerateIntermediateCSROptions()
-
-
Method Details
-
setSubjectCommonName
-
setSubjectOrganization
-
setSubjectOrganizationalUnit
public GenerateIntermediateCSROptions setSubjectOrganizationalUnit(String subjectOrganizationalUnit) -
setSubjectStreetAddress
-
setSubjectPostalCode
-
setSubjectLocality
-
setSubjectProvince
-
setSubjectCountry
-
setSubjectSerialNumber
-
setSubjectAlternativeNames
public GenerateIntermediateCSROptions setSubjectAlternativeNames(List<String> subjectAlternativeNames) -
setExcludeCommonNameFromSubjectAlternativeNames
public GenerateIntermediateCSROptions setExcludeCommonNameFromSubjectAlternativeNames(Boolean excludeCommonNameFromSubjectAlternativeNames) -
setIpSubjectAlternativeNames
public GenerateIntermediateCSROptions setIpSubjectAlternativeNames(List<String> ipSubjectAlternativeNames) -
setUriSubjectAlternativeNames
public GenerateIntermediateCSROptions setUriSubjectAlternativeNames(List<String> uriSubjectAlternativeNames) -
setOtherSubjectAlternativeNames
public GenerateIntermediateCSROptions setOtherSubjectAlternativeNames(List<String> otherSubjectAlternativeNames) -
setKeyType
-
setKeyBits
-
setExportPrivateKey
-
setFormat
-
setPrivateKeyEncoding
-