Package org.keycloak.storage.client
Class AbstractReadOnlyClientStorageAdapter
- java.lang.Object
-
- org.keycloak.storage.client.UnsupportedOperationsClientStorageAdapter
-
- org.keycloak.storage.client.AbstractClientStorageAdapter
-
- org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter
-
- All Implemented Interfaces:
ClientModel,ClientScopeModel,OrderedModel,ProtocolMapperContainerModel,RoleContainerModel,ScopeContainerModel
- Direct Known Subclasses:
OpenshiftSAClientAdapter
public abstract class AbstractReadOnlyClientStorageAdapter extends AbstractClientStorageAdapter
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.ClientModel
ClientModel.ClientCreationEvent, ClientModel.ClientIdChangeEvent, ClientModel.ClientProtocolUpdatedEvent, ClientModel.ClientRemovedEvent, ClientModel.ClientUpdatedEvent, ClientModel.SearchableFields
-
Nested classes/interfaces inherited from interface org.keycloak.models.ClientScopeModel
ClientScopeModel.ClientScopeRemovedEvent
-
Nested classes/interfaces inherited from interface org.keycloak.models.OrderedModel
OrderedModel.OrderedModelComparator<OM extends OrderedModel>
-
Nested classes/interfaces inherited from interface org.keycloak.models.RoleContainerModel
RoleContainerModel.RoleRemovedEvent
-
-
Field Summary
-
Fields inherited from class org.keycloak.storage.client.AbstractClientStorageAdapter
component, realm, session
-
Fields inherited from interface org.keycloak.models.ClientModel
LOGO_URI, POLICY_URI, PRIVATE_KEY, PUBLIC_KEY, TOS_URI, X509CERTIFICATE
-
Fields inherited from interface org.keycloak.models.ClientScopeModel
CONSENT_SCREEN_TEXT, DISPLAY_ON_CONSENT_SCREEN, DYNAMIC_SCOPE_REGEXP, GUI_ORDER, INCLUDE_IN_TOKEN_SCOPE, IS_DYNAMIC_SCOPE
-
-
Constructor Summary
Constructors Constructor Description AbstractReadOnlyClientStorageAdapter(KeycloakSession session, RealmModel realm, ClientStorageProviderModel component)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClientScope(ClientScopeModel clientScope, boolean defaultScope)Add clientScope with this client.voidaddClientScopes(Set<ClientScopeModel> clientScopes, boolean defaultScope)Add clientScopes with this client.ProtocolMapperModeladdProtocolMapper(ProtocolMapperModel model)voidaddRedirectUri(String redirectUri)voidaddScopeMapping(RoleModel role)voidaddWebOrigin(String webOrigin)voiddeleteScopeMapping(RoleModel role)voidremoveAttribute(String name)voidremoveAuthenticationFlowBindingOverride(String binding)voidremoveClientScope(ClientScopeModel clientScope)voidremoveProtocolMapper(ProtocolMapperModel mapping)voidremoveRedirectUri(String redirectUri)voidremoveWebOrigin(String webOrigin)voidsetAlwaysDisplayInConsole(boolean alwaysDisplayInConsole)voidsetAttribute(String name, String value)voidsetAuthenticationFlowBindingOverride(String binding, String flowId)voidsetBaseUrl(String url)voidsetBearerOnly(boolean only)voidsetClientAuthenticatorType(String clientAuthenticatorType)voidsetClientId(String clientId)voidsetConsentRequired(boolean consentRequired)voidsetDescription(String description)voidsetDirectAccessGrantsEnabled(boolean directAccessGrantsEnabled)voidsetEnabled(boolean enabled)voidsetFrontchannelLogout(boolean flag)voidsetFullScopeAllowed(boolean value)voidsetImplicitFlowEnabled(boolean implicitFlowEnabled)voidsetManagementUrl(String url)voidsetName(String name)voidsetNodeReRegistrationTimeout(int timeout)voidsetNotBefore(int notBefore)voidsetProtocol(String protocol)voidsetPublicClient(boolean flag)voidsetRedirectUris(Set<String> redirectUris)voidsetRegistrationToken(String registrationToken)voidsetRootUrl(String url)voidsetSecret(String secret)voidsetServiceAccountsEnabled(boolean serviceAccountsEnabled)voidsetStandardFlowEnabled(boolean standardFlowEnabled)voidsetWebOrigins(Set<String> webOrigins)voidupdateProtocolMapper(ProtocolMapperModel mapping)-
Methods inherited from class org.keycloak.storage.client.AbstractClientStorageAdapter
getId, getRealm, getRegisteredNodes, isSurrogateAuthRequired, registerNode, setSurrogateAuthRequired, unregisterNode, updateClient
-
Methods inherited from class org.keycloak.storage.client.UnsupportedOperationsClientStorageAdapter
addDefaultRole, addRole, addRole, getDefaultRolesStream, getRole, getRolesStream, getRolesStream, removeDefaultRoles, removeRole, searchForRolesStream, updateDefaultRoles
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.ClientModel
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, validateSecret
-
Methods inherited from interface org.keycloak.models.ClientScopeModel
getDynamicScopeRegexp, getGuiOrder, isDynamicScope, isIncludeInTokenScope, setConsentScreenText, setDisplayOnConsentScreen, setGuiOrder, setIncludeInTokenScope, setIsDynamicScope
-
Methods inherited from interface org.keycloak.models.ProtocolMapperContainerModel
getProtocolMapperById, getProtocolMapperByName, getProtocolMappersStream
-
Methods inherited from interface org.keycloak.models.RoleContainerModel
getDefaultRoles
-
Methods inherited from interface org.keycloak.models.ScopeContainerModel
getRealmScopeMappingsStream, getScopeMappingsStream, hasScope
-
-
-
-
Constructor Detail
-
AbstractReadOnlyClientStorageAdapter
public AbstractReadOnlyClientStorageAdapter(KeycloakSession session, RealmModel realm, ClientStorageProviderModel component)
-
-
Method Detail
-
setClientId
public void setClientId(String clientId)
-
setName
public void setName(String name)
-
setDescription
public void setDescription(String description)
-
setEnabled
public void setEnabled(boolean enabled)
-
setAlwaysDisplayInConsole
public void setAlwaysDisplayInConsole(boolean alwaysDisplayInConsole)
-
addWebOrigin
public void addWebOrigin(String webOrigin)
-
removeWebOrigin
public void removeWebOrigin(String webOrigin)
-
addRedirectUri
public void addRedirectUri(String redirectUri)
-
removeRedirectUri
public void removeRedirectUri(String redirectUri)
-
setManagementUrl
public void setManagementUrl(String url)
-
setRootUrl
public void setRootUrl(String url)
-
setBaseUrl
public void setBaseUrl(String url)
-
setBearerOnly
public void setBearerOnly(boolean only)
-
setNodeReRegistrationTimeout
public void setNodeReRegistrationTimeout(int timeout)
-
setClientAuthenticatorType
public void setClientAuthenticatorType(String clientAuthenticatorType)
-
setSecret
public void setSecret(String secret)
-
setRegistrationToken
public void setRegistrationToken(String registrationToken)
-
setProtocol
public void setProtocol(String protocol)
-
removeAttribute
public void removeAttribute(String name)
-
removeAuthenticationFlowBindingOverride
public void removeAuthenticationFlowBindingOverride(String binding)
-
setAuthenticationFlowBindingOverride
public void setAuthenticationFlowBindingOverride(String binding, String flowId)
-
setFrontchannelLogout
public void setFrontchannelLogout(boolean flag)
-
setPublicClient
public void setPublicClient(boolean flag)
-
setConsentRequired
public void setConsentRequired(boolean consentRequired)
-
setStandardFlowEnabled
public void setStandardFlowEnabled(boolean standardFlowEnabled)
-
setImplicitFlowEnabled
public void setImplicitFlowEnabled(boolean implicitFlowEnabled)
-
setDirectAccessGrantsEnabled
public void setDirectAccessGrantsEnabled(boolean directAccessGrantsEnabled)
-
setServiceAccountsEnabled
public void setServiceAccountsEnabled(boolean serviceAccountsEnabled)
-
addClientScope
public void addClientScope(ClientScopeModel clientScope, boolean defaultScope)
Description copied from interface:ClientModelAdd clientScope with this client. Add it as default scope (if parameter 'defaultScope' is true) or optional scope (if parameter 'defaultScope' is false)
-
addClientScopes
public void addClientScopes(Set<ClientScopeModel> clientScopes, boolean defaultScope)
Description copied from interface:ClientModelAdd clientScopes with this client. Add as default scopes (if parameter 'defaultScope' is true) or optional scopes (if parameter 'defaultScope' is false)
-
removeClientScope
public void removeClientScope(ClientScopeModel clientScope)
-
setNotBefore
public void setNotBefore(int notBefore)
-
addProtocolMapper
public ProtocolMapperModel addProtocolMapper(ProtocolMapperModel model)
-
removeProtocolMapper
public void removeProtocolMapper(ProtocolMapperModel mapping)
-
updateProtocolMapper
public void updateProtocolMapper(ProtocolMapperModel mapping)
-
setFullScopeAllowed
public void setFullScopeAllowed(boolean value)
-
addScopeMapping
public void addScopeMapping(RoleModel role)
-
deleteScopeMapping
public void deleteScopeMapping(RoleModel role)
-
-