Package org.keycloak.storage.client
Class AbstractClientStorageAdapter
- java.lang.Object
- 
- org.keycloak.storage.client.UnsupportedOperationsClientStorageAdapter
- 
- org.keycloak.storage.client.AbstractClientStorageAdapter
 
 
- 
- All Implemented Interfaces:
- ClientModel,- ClientScopeModel,- OrderedModel,- ProtocolMapperContainerModel,- RoleContainerModel,- ScopeContainerModel
 - Direct Known Subclasses:
- AbstractReadOnlyClientStorageAdapter
 
 public abstract class AbstractClientStorageAdapter extends UnsupportedOperationsClientStorageAdapter Helper base class for ClientModel implementations for ClientStorageProvider implementations. Contains default implementations of some methods- Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.keycloak.models.ClientModelClientModel.ClientCreationEvent, ClientModel.ClientIdChangeEvent, ClientModel.ClientProtocolUpdatedEvent, ClientModel.ClientRemovedEvent, ClientModel.ClientUpdatedEvent, ClientModel.SearchableFields
 - 
Nested classes/interfaces inherited from interface org.keycloak.models.ClientScopeModelClientScopeModel.ClientScopeRemovedEvent
 - 
Nested classes/interfaces inherited from interface org.keycloak.models.OrderedModelOrderedModel.OrderedModelComparator<OM extends OrderedModel>
 - 
Nested classes/interfaces inherited from interface org.keycloak.models.RoleContainerModelRoleContainerModel.RoleRemovedEvent
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected ClientStorageProviderModelcomponentprotected RealmModelrealmprotected KeycloakSessionsession- 
Fields inherited from interface org.keycloak.models.ClientModelLOGO_URI, POLICY_URI, PRIVATE_KEY, PUBLIC_KEY, TOS_URI, X509CERTIFICATE
 - 
Fields inherited from interface org.keycloak.models.ClientScopeModelCONSENT_SCREEN_TEXT, DISPLAY_ON_CONSENT_SCREEN, DYNAMIC_SCOPE_REGEXP, GUI_ORDER, INCLUDE_IN_TOKEN_SCOPE, IS_DYNAMIC_SCOPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractClientStorageAdapter(KeycloakSession session, RealmModel realm, ClientStorageProviderModel component)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()Creates federated id based on getClientId() methodRealmModelgetRealm()Map<String,Integer>getRegisteredNodes()This is for logout.booleanisSurrogateAuthRequired()This method really isn't used by anybody anywhere.voidregisterNode(String nodeHost, int registrationTime)This is for logout.voidsetSurrogateAuthRequired(boolean surrogateAuthRequired)This method really isn't used by anybody anywhere.voidunregisterNode(String nodeHost)This is for logout.voidupdateClient()Overriding implementations should call super.updateClient() as this fires off an update event.- 
Methods inherited from class org.keycloak.storage.client.UnsupportedOperationsClientStorageAdapteraddDefaultRole, addRole, addRole, getDefaultRolesStream, getRole, getRolesStream, getRolesStream, removeDefaultRoles, removeRole, searchForRolesStream, updateDefaultRoles
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.ClientModeladdClientScope, addClientScopes, addRedirectUri, addWebOrigin, getAttribute, getAttributes, getAuthenticationFlowBindingOverride, getAuthenticationFlowBindingOverrides, getBaseUrl, getClientAuthenticatorType, getClientId, getClientScopes, getConsentScreenText, getDescription, getDynamicClientScope, getManagementUrl, getName, getNodeReRegistrationTimeout, getNotBefore, getProtocol, getRedirectUris, getRegistrationToken, getRootUrl, getSecret, getWebOrigins, hasDirectScope, isAlwaysDisplayInConsole, isBearerOnly, isConsentRequired, isDirectAccessGrantsEnabled, isDisplayOnConsentScreen, isEnabled, isFrontchannelLogout, isFullScopeAllowed, isImplicitFlowEnabled, isPublicClient, isServiceAccountsEnabled, isStandardFlowEnabled, removeAttribute, removeAuthenticationFlowBindingOverride, removeClientScope, removeRedirectUri, removeWebOrigin, setAlwaysDisplayInConsole, setAttribute, setAuthenticationFlowBindingOverride, setBaseUrl, setBearerOnly, setClientAuthenticatorType, setClientId, setConsentRequired, setDescription, setDirectAccessGrantsEnabled, setEnabled, setFrontchannelLogout, setFullScopeAllowed, setImplicitFlowEnabled, setManagementUrl, setName, setNodeReRegistrationTimeout, setNotBefore, setProtocol, setPublicClient, setRedirectUris, setRegistrationToken, setRootUrl, setSecret, setServiceAccountsEnabled, setStandardFlowEnabled, setWebOrigins, validateSecret
 - 
Methods inherited from interface org.keycloak.models.ClientScopeModelgetDynamicScopeRegexp, getGuiOrder, isDynamicScope, isIncludeInTokenScope, setConsentScreenText, setDisplayOnConsentScreen, setGuiOrder, setIncludeInTokenScope, setIsDynamicScope
 - 
Methods inherited from interface org.keycloak.models.ProtocolMapperContainerModeladdProtocolMapper, getProtocolMapperById, getProtocolMapperByName, getProtocolMappersStream, removeProtocolMapper, updateProtocolMapper
 - 
Methods inherited from interface org.keycloak.models.RoleContainerModelgetDefaultRoles
 - 
Methods inherited from interface org.keycloak.models.ScopeContainerModeladdScopeMapping, deleteScopeMapping, getRealmScopeMappingsStream, getScopeMappingsStream, hasScope
 
- 
 
- 
- 
- 
Field Detail- 
sessionprotected KeycloakSession session 
 - 
realmprotected RealmModel realm 
 - 
componentprotected ClientStorageProviderModel component 
 
- 
 - 
Constructor Detail- 
AbstractClientStorageAdapterpublic AbstractClientStorageAdapter(KeycloakSession session, RealmModel realm, ClientStorageProviderModel component) 
 
- 
 - 
Method Detail- 
getIdpublic String getId() Creates federated id based on getClientId() method- Returns:
 
 - 
getRealmpublic final RealmModel getRealm() 
 - 
isSurrogateAuthRequiredpublic boolean isSurrogateAuthRequired() This method really isn't used by anybody anywhere. Legacy feature never supported.- Returns:
 
 - 
setSurrogateAuthRequiredpublic void setSurrogateAuthRequired(boolean surrogateAuthRequired) This method really isn't used by anybody anywhere. Legacy feature never supported.
 - 
getRegisteredNodespublic Map<String,Integer> getRegisteredNodes() This is for logout. Empty implementation for now. Can override if you can store this information somewhere.- Returns:
 
 - 
registerNodepublic void registerNode(String nodeHost, int registrationTime) This is for logout. Empty implementation for now. Can override if you can store this information somewhere.
 - 
unregisterNodepublic void unregisterNode(String nodeHost) This is for logout. Empty implementation for now. Can override if you can store this information somewhere.
 - 
updateClientpublic void updateClient() Overriding implementations should call super.updateClient() as this fires off an update event.
 
- 
 
-