Package org.keycloak.config
Class Option<T>
java.lang.Object
org.keycloak.config.Option<T>
-
Constructor Summary
-
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
isHidden()
boolean
Denotes whether a custom value can be provided among the expected values If strict, application fails when some custom value is providedwithRuntimeSpecificDefault
(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, 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 -
getDeprecatedMetadata
-
withRuntimeSpecificDefault
-
getDefaultValueString
-