Package io.quarkus.vault.pki
Class GenerateCertificateOptions
java.lang.Object
io.quarkus.vault.pki.GenerateCertificateOptions
Options for generating a certificate issued by the engine's 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.Specifies returned format of certificate & private key data.Specifies IP Subject Alternative Names.Specifies custom OID/UTF8-string Subject Alternative Names.Specifies encoding of private key data.Specifies Subject Alternative Names.Specifies Common Name (CN) of the certificate's subject.Specifies request time-to-live.Specifies URI Subject Alternative Names. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetExcludeCommonNameFromSubjectAlternativeNames(Boolean excludeCommonNameFromSubjectAlternativeNames) setFormat(DataFormat format) setIpSubjectAlternativeNames(List<String> ipSubjectAlternativeNames) setOtherSubjectAlternativeNames(List<String> otherSubjectAlternativeNames) setPrivateKeyEncoding(PrivateKeyEncoding privateKeyEncoding) setSubjectAlternativeNames(List<String> subjectAlternativeNames) setSubjectCommonName(String subjectCommonName) setTimeToLive(String timeToLive) setUriSubjectAlternativeNames(List<String> uriSubjectAlternativeNames)
-
Field Details
-
subjectCommonName
Specifies Common Name (CN) of the certificate's 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. This can be a comma-delimited list or a JSON string slice. Must match allowed_other_sans specified on the role. -
timeToLive
Specifies request time-to-live. If not specified, the role's TTL will be used.Value is specified as a string duration with time suffix. Hour is the largest supported suffix.
-
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
-
GenerateCertificateOptions
public GenerateCertificateOptions()
-
-
Method Details
-
setSubjectCommonName
-
setSubjectAlternativeNames
-
setExcludeCommonNameFromSubjectAlternativeNames
public GenerateCertificateOptions setExcludeCommonNameFromSubjectAlternativeNames(Boolean excludeCommonNameFromSubjectAlternativeNames) -
setIpSubjectAlternativeNames
public GenerateCertificateOptions setIpSubjectAlternativeNames(List<String> ipSubjectAlternativeNames) -
setUriSubjectAlternativeNames
public GenerateCertificateOptions setUriSubjectAlternativeNames(List<String> uriSubjectAlternativeNames) -
setOtherSubjectAlternativeNames
public GenerateCertificateOptions setOtherSubjectAlternativeNames(List<String> otherSubjectAlternativeNames) -
setTimeToLive
-
setFormat
-
setPrivateKeyEncoding
-