Package io.quarkus.vault.pki
Class GenerateIntermediateCSROptions
- java.lang.Object
-
- io.quarkus.vault.pki.GenerateIntermediateCSROptions
-
public class GenerateIntermediateCSROptions extends Object
Options for generating a CSR for an intermediate CA.
-
-
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.booleanexportPrivateKeyFlag determining if the generated private key should be exported or kept internally.DataFormatformatSpecifies returned format of CSR & private key data.List<String>ipSubjectAlternativeNamesSpecifies IP Subject Alternative Names.IntegerkeyBitsSpecifies the number of bits for the generated private key.CertificateKeyTypekeyTypeSpecifies the desired type of private key to generate, RSA or EC.List<String>otherSubjectAlternativeNamesSpecifies custom OID/UTF8-string Subject Alternative Names.PrivateKeyEncodingprivateKeyEncodingSpecifies encoding of private key data.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.List<String>uriSubjectAlternativeNamesSpecifies URI Subject Alternative Names.
-
Constructor Summary
Constructors Constructor Description GenerateIntermediateCSROptions()
-
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. Must match RoleOptions.allowedOtherSubjectAlternativeNamesspecified on the role.
-
keyType
public CertificateKeyType keyType
Specifies the desired type of private key to generate, RSA or EC.
-
keyBits
public Integer keyBits
Specifies the number of bits for the generated private key.If
keyTypeisCertificateKeyType.EC, this value must be specified as well.
-
format
public DataFormat format
Specifies returned format of CSR & private key data. If unspecified it defaults toDataFormat.PEM
-
privateKeyEncoding
public PrivateKeyEncoding privateKeyEncoding
Specifies encoding of private key data. If unspecified it defaults toPrivateKeyEncoding.PKCS8.
-
exportPrivateKey
public boolean exportPrivateKey
Flag determining if the generated private key should be exported or kept internally.
-
-
Method Detail
-
setSubjectCommonName
public GenerateIntermediateCSROptions setSubjectCommonName(String subjectCommonName)
-
setSubjectOrganization
public GenerateIntermediateCSROptions setSubjectOrganization(String subjectOrganization)
-
setSubjectOrganizationalUnit
public GenerateIntermediateCSROptions setSubjectOrganizationalUnit(String subjectOrganizationalUnit)
-
setSubjectStreetAddress
public GenerateIntermediateCSROptions setSubjectStreetAddress(String subjectStreetAddress)
-
setSubjectPostalCode
public GenerateIntermediateCSROptions setSubjectPostalCode(String subjectPostalCode)
-
setSubjectLocality
public GenerateIntermediateCSROptions setSubjectLocality(String subjectLocality)
-
setSubjectProvince
public GenerateIntermediateCSROptions setSubjectProvince(String subjectProvince)
-
setSubjectCountry
public GenerateIntermediateCSROptions setSubjectCountry(String subjectCountry)
-
setSubjectSerialNumber
public GenerateIntermediateCSROptions setSubjectSerialNumber(String subjectSerialNumber)
-
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
public GenerateIntermediateCSROptions setKeyType(CertificateKeyType keyType)
-
setKeyBits
public GenerateIntermediateCSROptions setKeyBits(Integer keyBits)
-
setExportPrivateKey
public GenerateIntermediateCSROptions setExportPrivateKey(boolean exportPrivateKey)
-
setFormat
public GenerateIntermediateCSROptions setFormat(DataFormat format)
-
setPrivateKeyEncoding
public GenerateIntermediateCSROptions setPrivateKeyEncoding(PrivateKeyEncoding privateKeyEncoding)
-
-