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
- 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
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, TYPE, 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
ConstructorDescriptionAbstractReadOnlyClientStorageAdapter
(KeycloakSession session, RealmModel realm, ClientStorageProviderModel component) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addClientScope
(ClientScopeModel clientScope, boolean defaultScope) Add clientScope with this client.void
addClientScopes
(Set<ClientScopeModel> clientScopes, boolean defaultScope) Add clientScopes with this client.void
addRedirectUri
(String redirectUri) void
addScopeMapping
(RoleModel role) void
addWebOrigin
(String webOrigin) void
deleteScopeMapping
(RoleModel role) void
removeAttribute
(String name) void
void
removeClientScope
(ClientScopeModel clientScope) void
removeProtocolMapper
(ProtocolMapperModel mapping) void
removeRedirectUri
(String redirectUri) void
removeWebOrigin
(String webOrigin) void
setAlwaysDisplayInConsole
(boolean alwaysDisplayInConsole) void
setAttribute
(String name, String value) void
setAuthenticationFlowBindingOverride
(String binding, String flowId) void
setBaseUrl
(String url) void
setBearerOnly
(boolean only) void
setClientAuthenticatorType
(String clientAuthenticatorType) void
setClientId
(String clientId) void
setConsentRequired
(boolean consentRequired) void
setDescription
(String description) void
setDirectAccessGrantsEnabled
(boolean directAccessGrantsEnabled) void
setEnabled
(boolean enabled) void
setFrontchannelLogout
(boolean flag) void
setFullScopeAllowed
(boolean value) void
setImplicitFlowEnabled
(boolean implicitFlowEnabled) void
setManagementUrl
(String url) void
void
setNodeReRegistrationTimeout
(int timeout) void
setNotBefore
(int notBefore) void
setProtocol
(String protocol) void
setPublicClient
(boolean flag) void
setRedirectUris
(Set<String> redirectUris) void
setRegistrationToken
(String registrationToken) void
setRootUrl
(String url) void
void
setServiceAccountsEnabled
(boolean serviceAccountsEnabled) void
setStandardFlowEnabled
(boolean standardFlowEnabled) void
setWebOrigins
(Set<String> webOrigins) void
updateProtocolMapper
(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
addRole, addRole, getRole, getRolesStream, getRolesStream, removeRole, searchForRolesStream
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, getType, getWebOrigins, hasDirectScope, isAlwaysDisplayInConsole, isBearerOnly, isConsentRequired, isDirectAccessGrantsEnabled, isDisplayOnConsentScreen, isEnabled, isFrontchannelLogout, isFullScopeAllowed, isImplicitFlowEnabled, isPublicClient, isServiceAccountsEnabled, isStandardFlowEnabled, setType, 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.ScopeContainerModel
getRealmScopeMappingsStream, getScopeMappingsStream, hasScope
-
Constructor Details
-
AbstractReadOnlyClientStorageAdapter
public AbstractReadOnlyClientStorageAdapter(KeycloakSession session, RealmModel realm, ClientStorageProviderModel component)
-
-
Method Details
-
setClientId
-
setName
-
setDescription
-
setEnabled
public void setEnabled(boolean enabled) -
setAlwaysDisplayInConsole
public void setAlwaysDisplayInConsole(boolean alwaysDisplayInConsole) -
setWebOrigins
-
addWebOrigin
-
removeWebOrigin
-
setRedirectUris
-
addRedirectUri
-
removeRedirectUri
-
setManagementUrl
-
setRootUrl
-
setBaseUrl
-
setBearerOnly
public void setBearerOnly(boolean only) -
setNodeReRegistrationTimeout
public void setNodeReRegistrationTimeout(int timeout) -
setClientAuthenticatorType
-
setSecret
-
setRegistrationToken
-
setProtocol
-
setAttribute
-
removeAttribute
-
removeAuthenticationFlowBindingOverride
-
setAuthenticationFlowBindingOverride
-
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
Description copied from interface:ClientModel
Add clientScope with this client. Add it as default scope (if parameter 'defaultScope' is true) or optional scope (if parameter 'defaultScope' is false) -
addClientScopes
Description copied from interface:ClientModel
Add clientScopes with this client. Add as default scopes (if parameter 'defaultScope' is true) or optional scopes (if parameter 'defaultScope' is false) -
removeClientScope
-
setNotBefore
public void setNotBefore(int notBefore) -
addProtocolMapper
-
removeProtocolMapper
-
updateProtocolMapper
-
setFullScopeAllowed
public void setFullScopeAllowed(boolean value) -
addScopeMapping
-
deleteScopeMapping
-