Class RoleOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionSpecifies if clients can request any Common Name (CN).Specifies if clients can request certificates matching the value of the actual domains themselves.Specifies domains allowed on issued certificates.Defines allowed custom OID/UTF8-string Subject Alternative Names.Specifies allowed Serial Number (SERIALNUMBER) values of the subject on issued certificates.Defines allowed URI Subject Alternative Names.Allows names specified inallowedDomainsto contain glob patterns (e.g. ftp*.example.com).Specifies if clients can request IP Subject Alternative Names.Specifies if clients can request certificates for localhost as one of the requested common names.Specifies if clients can request certificates with a Common Name (CN) that is a subdomain of the domains allowed by the other role options.Flag allowing templates to be used inallowedDomains.Mark Basic Constraints valid when issuing non-CA certificates.Specifies if certificates are flagged for client use.Specifies if certificates are flagged for code signing use.Specifies if certificates are flagged for email protection use.Specifies if only valid host names are allowed for Common Names, DNS Subject Alternative Names, and the host part of email addresses.Specifies extended key usage OIDs.Specifies the allowed extended key usage constraint on issued certificates.Specifies if certificates issued/signed against this role will have Vault leases attached to them.Specifies the number of bits to use for the generated keys.Specifies the type of private keys to generate and the type of key expected for submitted CSRs.Specifies the allowed key usage constraint on issued certificates.Specifies maximum allowed time-to-live.Flag determining if certificates issued/signed against this role will be stored in the storage backend.Specifies the duration by which to backdate on issued certificates not-before.List of policy OIDs.Flag determining if the Common Name (CN) field is required when generating a certificate.Specifies if certificates are flagged for server use.Specifies Country (C) of the subject on issued certificates.Specifies Locality (L) of the subject on issued certificates.Specifies Organization (O) of the subject on issued certificates.Specifies Organizational Unit (OU) of the subject on issued certificates.Specifies Postal Code of the subject on issued certificates.Specifies Province (ST) of the subject on issued certificates.Specifies Street Address of the subject on issued certificates.Specifies default request time-to-live.Flag determining if the Common Name in the CSR will be used instead of that specified in request data.Flag determining if the Subject Alternative Names in the CSR will be used instead of that specified in request data. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetAllowAnyName(Boolean allowAnyName) setAllowBareDomains(Boolean allowBareDomains) setAllowedDomains(List<String> allowedDomains) setAllowedOtherSubjectAlternativeNames(List<String> allowedOtherSubjectAlternativeNames) setAllowedSubjectSerialNumbers(List<String> allowedSubjectSerialNumbers) setAllowedUriSubjectAlternativeNames(List<String> allowedUriSubjectAlternativeNames) setAllowGlobsInAllowedDomains(Boolean allowGlobsInAllowedDomains) setAllowIpSubjectAlternativeNames(Boolean allowIpSubjectAlternativeNames) setAllowLocalhost(Boolean allowLocalhost) setAllowSubdomains(Boolean allowSubdomains) setAllowTemplatesInAllowedDomains(Boolean allowTemplatesInAllowedDomains) setBasicConstraintsValidForNonCA(Boolean basicConstraintsValidForNonCA) setClientFlag(Boolean clientFlag) setCodeSigningFlag(Boolean codeSigningFlag) setEmailProtectionFlag(Boolean emailProtectionFlag) setEnforceHostnames(Boolean enforceHostnames) setExtendedKeyUsageOIDs(List<String> extendedKeyUsageOIDs) setExtendedKeyUsages(List<CertificateExtendedKeyUsage> extendedKeyUsages) setGenerateLease(Boolean generateLease) setKeyBits(Integer keyBits) setKeyType(CertificateKeyType keyType) setKeyUsages(List<CertificateKeyUsage> keyUsages) setMaxTimeToLive(String maxTimeToLive) setNoStore(Boolean noStore) setNotBeforeDuration(String notBeforeDuration) setPolicyOIDs(List<String> policyOIDs) setRequireCommonName(Boolean requireCommonName) setServerFlag(Boolean serverFlag) setSubjectCountry(String subjectCountry) setSubjectLocality(String subjectLocality) setSubjectOrganization(String subjectOrganization) setSubjectOrganizationalUnit(String subjectOrganizationalUnit) setSubjectPostalCode(String subjectPostalCode) setSubjectProvince(String subjectProvince) setSubjectStreetAddress(String subjectStreetAddress) setTimeToLive(String timeToLive) setUseCSRCommonName(Boolean useCSRCommonName) setUseCSRSubjectAlternativeNames(Boolean useCSRSubjectAlternativeNames)
-
Field Details
-
timeToLive
Specifies default request time-to-live.Value is specified as a string duration with time suffix. Hour is the largest supported suffix.
-
maxTimeToLive
Specifies maximum allowed time-to-live.Value is specified as a string duration with time suffix. Hour is the largest supported suffix.
-
allowLocalhost
Specifies if clients can request certificates for localhost as one of the requested common names. -
allowedDomains
Specifies domains allowed on issued certificates. -
allowTemplatesInAllowedDomains
Flag allowing templates to be used inallowedDomains.- See Also:
-
allowBareDomains
Specifies if clients can request certificates matching the value of the actual domains themselves. -
allowSubdomains
Specifies if clients can request certificates with a Common Name (CN) that is a subdomain of the domains allowed by the other role options. This includes wildcard subdomains. -
allowGlobsInAllowedDomains
Allows names specified inallowedDomainsto contain glob patterns (e.g. ftp*.example.com). -
allowAnyName
Specifies if clients can request any Common Name (CN). -
enforceHostnames
Specifies if only valid host names are allowed for Common Names, DNS Subject Alternative Names, and the host part of email addresses. -
allowIpSubjectAlternativeNames
Specifies if clients can request IP Subject Alternative Names. -
allowedUriSubjectAlternativeNames
Defines allowed URI Subject Alternative Names.Values can contain glob patterns (e.g. spiffe://hostname/*).
-
allowedOtherSubjectAlternativeNames
Defines allowed custom OID/UTF8-string Subject Alternative Names.The format is the same as OpenSSL:
; : where the only current valid type is UTF8. -
serverFlag
Specifies if certificates are flagged for server use. -
clientFlag
Specifies if certificates are flagged for client use. -
codeSigningFlag
Specifies if certificates are flagged for code signing use. -
emailProtectionFlag
Specifies if certificates are flagged for email protection use. -
keyType
Specifies the type of private keys to generate and the type of key expected for submitted CSRs. -
keyBits
Specifies the number of bits to use for the generated keys.If
keyTypeisCertificateKeyType.EC, this value must be specified as well. -
keyUsages
Specifies the allowed key usage constraint on issued certificates. -
extendedKeyUsages
Specifies the allowed extended key usage constraint on issued certificates. -
extendedKeyUsageOIDs
Specifies extended key usage OIDs. -
useCSRCommonName
Flag determining if the Common Name in the CSR will be used instead of that specified in request data.Only applies to certificates signed using
VaultPKISecretEngine.signRequest(String, String, GenerateCertificateOptions) -
useCSRSubjectAlternativeNames
Flag determining if the Subject Alternative Names in the CSR will be used instead of that specified in request data.Only applies to certificates signed using
VaultPKISecretEngine.signRequest(String, String, GenerateCertificateOptions) -
subjectOrganization
Specifies Organization (O) of the subject on issued certificates. -
subjectOrganizationalUnit
Specifies Organizational Unit (OU) of the subject on issued certificates. -
subjectStreetAddress
Specifies Street Address of the subject on issued certificates. -
subjectPostalCode
Specifies Postal Code of the subject on issued certificates. -
subjectLocality
Specifies Locality (L) of the subject on issued certificates. -
subjectProvince
Specifies Province (ST) of the subject on issued certificates. -
subjectCountry
Specifies Country (C) of the subject on issued certificates. -
allowedSubjectSerialNumbers
Specifies allowed Serial Number (SERIALNUMBER) values of the subject on issued certificates. -
generateLease
Specifies if certificates issued/signed against this role will have Vault leases attached to them. -
noStore
Flag determining if certificates issued/signed against this role will be stored in the storage backend. -
requireCommonName
Flag determining if the Common Name (CN) field is required when generating a certificate. -
policyOIDs
List of policy OIDs. -
basicConstraintsValidForNonCA
Mark Basic Constraints valid when issuing non-CA certificates. -
notBeforeDuration
Specifies the duration by which to backdate on issued certificates not-before.Value is specified as a string duration with time suffix. Hour is the largest supported suffix.
-
-
Constructor Details
-
RoleOptions
public RoleOptions()
-
-
Method Details
-
setTimeToLive
-
setMaxTimeToLive
-
setAllowLocalhost
-
setAllowedDomains
-
setAllowTemplatesInAllowedDomains
-
setAllowBareDomains
-
setAllowSubdomains
-
setAllowGlobsInAllowedDomains
-
setAllowAnyName
-
setEnforceHostnames
-
setAllowIpSubjectAlternativeNames
-
setAllowedUriSubjectAlternativeNames
public RoleOptions setAllowedUriSubjectAlternativeNames(List<String> allowedUriSubjectAlternativeNames) -
setAllowedOtherSubjectAlternativeNames
public RoleOptions setAllowedOtherSubjectAlternativeNames(List<String> allowedOtherSubjectAlternativeNames) -
setServerFlag
-
setClientFlag
-
setCodeSigningFlag
-
setEmailProtectionFlag
-
setKeyType
-
setKeyBits
-
setKeyUsages
-
setExtendedKeyUsages
-
setExtendedKeyUsageOIDs
-
setUseCSRCommonName
-
setUseCSRSubjectAlternativeNames
-
setSubjectOrganization
-
setSubjectOrganizationalUnit
-
setSubjectStreetAddress
-
setSubjectPostalCode
-
setSubjectLocality
-
setSubjectProvince
-
setSubjectCountry
-
setAllowedSubjectSerialNumbers
-
setGenerateLease
-
setNoStore
-
setRequireCommonName
-
setPolicyOIDs
-
setBasicConstraintsValidForNonCA
-
setNotBeforeDuration
-