Package org.keycloak.component
Class JsonConfigComponentModel
java.lang.Object
org.keycloak.component.ComponentModel
org.keycloak.component.JsonConfigComponentModel
- All Implemented Interfaces:
Serializable
Component model backed by JSON configuration. Useful for providers, which rely on JSON configuration rather than on ComponentModel, which is directly
persisted as entity in the DB (store).
- Author:
- Marek Posolda
- See Also:
-
Constructor Summary
ConstructorDescriptionJsonConfigComponentModel
(Class<? extends Provider> providerType, String realmId, String providerId, com.fasterxml.jackson.databind.JsonNode configNode) -
Method Summary
Methods inherited from class org.keycloak.component.ComponentModel
contains, getConfig, getNote, getParentId, getSubType, hasNote, put, put, put, put, removeNote, setConfig, setId, setName, setNote, setParentId, setProviderId, setProviderType, setSubType
-
Constructor Details
-
JsonConfigComponentModel
public JsonConfigComponentModel(Class<? extends Provider> providerType, String realmId, String providerId, com.fasterxml.jackson.databind.JsonNode configNode) - Parameters:
providerType
-realmId
-providerId
-configNode
- JSON configuration of this provider. For example if node corresponds to JSON like "{\"foo\":\"bar\"}", then component configuration is supposed to have one configuration option "foo" with value "bar"
-
-
Method Details
-
getProviderType
- Overrides:
getProviderType
in classComponentModel
-
getProviderId
- Overrides:
getProviderId
in classComponentModel
-
getName
- Overrides:
getName
in classComponentModel
-
getId
- Overrides:
getId
in classComponentModel
-
get
- Overrides:
get
in classComponentModel
-
get
- Overrides:
get
in classComponentModel
-
get
- Overrides:
get
in classComponentModel
-
get
- Overrides:
get
in classComponentModel
-
get
- Overrides:
get
in classComponentModel
-