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) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getDefaultValueString
(Object value) IfisStrictExpectedValues()
is false, custom values can be provided Otherwise, only specified expected values can be usedgetKey()
getType()
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)
-
-
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
-
toBuilder
-
getDefaultValueString
-
transformEnumValue
Transform enum values from upper underscore to lower hyphen Transform enum type HAS_SOMETHING -> has-something
-