Package org.keycloak.config
Class Option<T>
java.lang.Object
org.keycloak.config.Option<T>
-
Constructor Summary
ConstructorsConstructorDescriptionOption
(Class<T> type, String key, OptionCategory category, boolean hidden, boolean buildTime, String description, Optional<T> defaultValue, List<String> expectedValues, boolean strictExpectedValues, boolean caseInsensitiveExpectedValues, DeprecatedMetadata deprecatedMetadata, Set<String> connectedOptions, String wildcardKey) -
Method Summary
Modifier and TypeMethodDescriptionGet connected options that have a certain relationship with the current option.static String
getDefaultValueString
(Object value) IfisStrictExpectedValues()
is false, custom values can be provided Otherwise, only specified expected values can be usedgetKey()
getType()
Get sibling option name that is able to use a named key - like using wildcards Useful mainly for references in docs f.e.boolean
boolean
boolean
isHidden()
boolean
Denotes whether a custom value can be provided among the expected values If strict, application fails when some custom value is providedstatic String
transformEnumValue
(String value) Transform enum values from upper underscore to lower hyphen Transform enum type HAS_SOMETHING -> has-somethingwithRuntimeSpecificDefault
(T defaultValue)
-
Constructor Details
-
Option
public Option(Class<T> type, String key, OptionCategory category, boolean hidden, boolean buildTime, String description, Optional<T> defaultValue, List<String> expectedValues, boolean strictExpectedValues, boolean caseInsensitiveExpectedValues, DeprecatedMetadata deprecatedMetadata, Set<String> connectedOptions, String wildcardKey)
-
-
Method Details
-
getType
-
isHidden
public boolean isHidden() -
isBuildTime
public boolean isBuildTime() -
getKey
-
getCategory
-
getDescription
-
getDefaultValue
-
getExpectedValues
IfisStrictExpectedValues()
is false, custom values can be provided Otherwise, only specified expected values can be used- Returns:
- expected values
-
isStrictExpectedValues
public boolean isStrictExpectedValues()Denotes whether a custom value can be provided among the expected values If strict, application fails when some custom value is provided -
isCaseInsensitiveExpectedValues
public boolean isCaseInsensitiveExpectedValues() -
getDeprecatedMetadata
-
withRuntimeSpecificDefault
-
getConnectedOptions
Get connected options that have a certain relationship with the current option. Usually when the current option is set, the connected options should be set as well. -
getWildcardKey
Get sibling option name that is able to use a named key - like using wildcards Useful mainly for references in docs f.e.db-username
has wildcard optiondb-username-<datasource>
-
toBuilder
-
getDefaultValueString
-
transformEnumValue
Transform enum values from upper underscore to lower hyphen Transform enum type HAS_SOMETHING -> has-something
-