Package org.keycloak.provider
Class ProviderConfigProperty
- java.lang.Object
- 
- org.keycloak.provider.ProviderConfigProperty
 
- 
 public class ProviderConfigProperty extends Object Configuration property metadata. Used to render generic configuration pages for Keycloak extensions in the admin console.- Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringBOOLEAN_TYPEstatic StringCLIENT_LIST_TYPEprotected ObjectdefaultValuestatic StringFILE_TYPEstatic StringGROUP_TYPEprotected StringhelpTextprotected Stringlabelstatic StringLIST_TYPEPossibility to configure single String value, which needs to be chosen from the list of predefined values (HTML select)static StringMAP_TYPEConfigure multiple (key, value) pairsstatic StringMULTIVALUED_LIST_TYPEPossibility to configure multiple String values, which needs to be chosen from the list of predefined values (HTML select with multiple)static StringMULTIVALUED_STRING_TYPEPossibility to configure multiple String values of any value (something like "redirect_uris" for clients)protected Stringnameprotected List<String>optionsstatic StringPASSWORDstatic StringROLE_TYPEstatic StringSCRIPT_TYPEprotected booleansecretstatic StringSTRING_TYPEstatic StringTEXT_TYPEtextarea fieldprotected Stringtype
 - 
Constructor SummaryConstructors Constructor Description ProviderConfigProperty()ProviderConfigProperty(String name, String label, String helpText, String type, Object defaultValue)ProviderConfigProperty(String name, String label, String helpText, String type, Object defaultValue, boolean secret)ProviderConfigProperty(String name, String label, String helpText, String type, Object defaultValue, String... options)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetDefaultValue()Default value for the variableStringgetHelpText()Help text that will be displayed in the admin console tooltipStringgetLabel()Label shown in the admin console when configuring the variableStringgetName()Name of the config variable stored in the databaseList<String>getOptions()For list types, this is a list of choices to choose from.StringgetType()Type of the variable.booleanisReadOnly()booleanisSecret()If true, this variable is only writeable.voidsetDefaultValue(Object defaultValue)voidsetHelpText(String helpText)voidsetLabel(String label)voidsetName(String name)voidsetOptions(List<String> options)voidsetReadOnly(boolean readOnly)voidsetSecret(boolean secret)voidsetType(String type)
 
- 
- 
- 
Field Detail- 
BOOLEAN_TYPEpublic static final String BOOLEAN_TYPE - See Also:
- Constant Field Values
 
 - 
STRING_TYPEpublic static final String STRING_TYPE - See Also:
- Constant Field Values
 
 - 
MULTIVALUED_STRING_TYPEpublic static final String MULTIVALUED_STRING_TYPE Possibility to configure multiple String values of any value (something like "redirect_uris" for clients)- See Also:
- Constant Field Values
 
 - 
SCRIPT_TYPEpublic static final String SCRIPT_TYPE - See Also:
- Constant Field Values
 
 - 
FILE_TYPEpublic static final String FILE_TYPE - See Also:
- Constant Field Values
 
 - 
ROLE_TYPEpublic static final String ROLE_TYPE - See Also:
- Constant Field Values
 
 - 
GROUP_TYPEpublic static final String GROUP_TYPE - See Also:
- Constant Field Values
 
 - 
LIST_TYPEpublic static final String LIST_TYPE Possibility to configure single String value, which needs to be chosen from the list of predefined values (HTML select)- See Also:
- Constant Field Values
 
 - 
MULTIVALUED_LIST_TYPEpublic static final String MULTIVALUED_LIST_TYPE Possibility to configure multiple String values, which needs to be chosen from the list of predefined values (HTML select with multiple)- See Also:
- Constant Field Values
 
 - 
CLIENT_LIST_TYPEpublic static final String CLIENT_LIST_TYPE - See Also:
- Constant Field Values
 
 - 
PASSWORDpublic static final String PASSWORD - See Also:
- Constant Field Values
 
 - 
TEXT_TYPEpublic static final String TEXT_TYPE textarea field- See Also:
- Constant Field Values
 
 - 
MAP_TYPEpublic static final String MAP_TYPE Configure multiple (key, value) pairs- See Also:
- Constant Field Values
 
 - 
nameprotected String name 
 - 
labelprotected String label 
 - 
helpTextprotected String helpText 
 - 
typeprotected String type 
 - 
defaultValueprotected Object defaultValue 
 - 
secretprotected boolean secret 
 
- 
 - 
Constructor Detail- 
ProviderConfigPropertypublic ProviderConfigProperty() 
 - 
ProviderConfigPropertypublic ProviderConfigProperty(String name, String label, String helpText, String type, Object defaultValue) 
 - 
ProviderConfigPropertypublic ProviderConfigProperty(String name, String label, String helpText, String type, Object defaultValue, String... options) 
 
- 
 - 
Method Detail- 
getNamepublic String getName() Name of the config variable stored in the database- Returns:
 
 - 
setNamepublic void setName(String name) 
 - 
getLabelpublic String getLabel() Label shown in the admin console when configuring the variable- Returns:
 
 - 
setLabelpublic void setLabel(String label) 
 - 
getTypepublic String getType() Type of the variable. i.e. boolean, string etc. See the constants declared in this class for what your choices are.- Returns:
 
 - 
setTypepublic void setType(String type) 
 - 
getDefaultValuepublic Object getDefaultValue() Default value for the variable- Returns:
 
 - 
setDefaultValuepublic void setDefaultValue(Object defaultValue) 
 - 
getOptionspublic List<String> getOptions() For list types, this is a list of choices to choose from.- Returns:
 
 - 
getHelpTextpublic String getHelpText() Help text that will be displayed in the admin console tooltip- Returns:
 
 - 
setHelpTextpublic void setHelpText(String helpText) 
 - 
isSecretpublic boolean isSecret() If true, this variable is only writeable. It will never be viewable. This is important for things like passwords in which you never want to display them on the screen.- Returns:
 
 - 
setSecretpublic void setSecret(boolean secret) 
 - 
setReadOnlypublic void setReadOnly(boolean readOnly) 
 - 
isReadOnlypublic boolean isReadOnly() 
 
- 
 
-