Package codes.grow.packages.vault
Class IssueOptions.Builder
java.lang.Object
codes.grow.packages.vault.IssueOptions.Builder
- Enclosing class:
IssueOptions
Builder of
IssueOptions.-
Method Summary
Modifier and TypeMethodDescriptionSets DNS / email subject alternative names.build()Builds the options.commonName(String commonName) Sets the common name (signCsronly; defaults to the CSR subject).excludeCnFromSans(boolean exclude) Leaves the common name out of the SANs.Sets the output format:pem(default),derorpem_bundle.Sets IP subject alternative names.privateKeyFormat(String privateKeyFormat) Sets the private key format (issueCertificateonly):derorpkcs8.Sets the certificate TTL.Sets URI subject alternative names.
-
Method Details
-
commonName
Sets the common name (signCsronly; defaults to the CSR subject).- Parameters:
commonName- common name- Returns:
- this builder
-
altNames
Sets DNS / email subject alternative names.- Parameters:
names- names- Returns:
- this builder
-
ipSans
Sets IP subject alternative names.- Parameters:
ips- addresses- Returns:
- this builder
-
uriSans
Sets URI subject alternative names.- Parameters:
uris- URIs- Returns:
- this builder
-
ttl
Sets the certificate TTL.- Parameters:
ttl- TTL- Returns:
- this builder
-
format
Sets the output format:pem(default),derorpem_bundle.- Parameters:
format- format- Returns:
- this builder
-
privateKeyFormat
Sets the private key format (issueCertificateonly):derorpkcs8.- Parameters:
privateKeyFormat- format- Returns:
- this builder
-
excludeCnFromSans
Leaves the common name out of the SANs.- Parameters:
exclude- flag- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-