keycloak-spi-private
公開メンバ関数 | 限定公開変数類 | 全メンバ一覧
org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter クラスabstract
org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter の継承関係図
Inheritance graph
org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter 連携図
Collaboration graph

公開メンバ関数

 AbstractReadOnlyClientStorageAdapter (KeycloakSession session, RealmModel realm, ClientStorageProviderModel component)
 
void setClientId (String clientId)
 
void setName (String name)
 
void setDescription (String description)
 
void setEnabled (boolean enabled)
 
void setWebOrigins (Set< String > webOrigins)
 
void addWebOrigin (String webOrigin)
 
void removeWebOrigin (String webOrigin)
 
void setRedirectUris (Set< String > redirectUris)
 
void addRedirectUri (String redirectUri)
 
void removeRedirectUri (String redirectUri)
 
void setManagementUrl (String url)
 
void setRootUrl (String url)
 
void setBaseUrl (String url)
 
void setBearerOnly (boolean only)
 
void setNodeReRegistrationTimeout (int timeout)
 
void setClientAuthenticatorType (String clientAuthenticatorType)
 
void setSecret (String secret)
 
void setRegistrationToken (String registrationToken)
 
void setProtocol (String protocol)
 
void setAttribute (String name, String value)
 
void removeAttribute (String name)
 
void removeAuthenticationFlowBindingOverride (String binding)
 
void setAuthenticationFlowBindingOverride (String binding, String flowId)
 
void setFrontchannelLogout (boolean flag)
 
void setPublicClient (boolean flag)
 
void setConsentRequired (boolean consentRequired)
 
void setStandardFlowEnabled (boolean standardFlowEnabled)
 
void setImplicitFlowEnabled (boolean implicitFlowEnabled)
 
void setDirectAccessGrantsEnabled (boolean directAccessGrantsEnabled)
 
void setServiceAccountsEnabled (boolean serviceAccountsEnabled)
 
void addClientScope (ClientScopeModel clientScope, boolean defaultScope)
 
void removeClientScope (ClientScopeModel clientScope)
 
void setNotBefore (int notBefore)
 
ProtocolMapperModel addProtocolMapper (ProtocolMapperModel model)
 
void removeProtocolMapper (ProtocolMapperModel mapping)
 
void updateProtocolMapper (ProtocolMapperModel mapping)
 
void setFullScopeAllowed (boolean value)
 
void addScopeMapping (RoleModel role)
 
void deleteScopeMapping (RoleModel role)
 
String getId ()
 
final RealmModel getRealm ()
 
boolean isSurrogateAuthRequired ()
 
void setSurrogateAuthRequired (boolean surrogateAuthRequired)
 
Map< String, Integer > getRegisteredNodes ()
 
void registerNode (String nodeHost, int registrationTime)
 
void unregisterNode (String nodeHost)
 
void updateClient ()
 
final RoleModel getRole (String name)
 
final RoleModel addRole (String name)
 
final RoleModel addRole (String id, String name)
 
final boolean removeRole (RoleModel role)
 
final Set< RoleModel > getRoles ()
 
final List< String > getDefaultRoles ()
 
final void addDefaultRole (String name)
 
final void updateDefaultRoles (String... defaultRoles)
 
final void removeDefaultRoles (String... defaultRoles)
 

限定公開変数類

KeycloakSession session
 
RealmModel realm
 
ClientStorageProviderModel component
 

詳解

著者
Bill Burke
バージョン
Revision
1

構築子と解体子

◆ AbstractReadOnlyClientStorageAdapter()

org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.AbstractReadOnlyClientStorageAdapter ( KeycloakSession  session,
RealmModel  realm,
ClientStorageProviderModel  component 
)
inline
33  {
34  super(session, realm, component);
35  }
ClientStorageProviderModel component
Definition: AbstractClientStorageAdapter.java:38
KeycloakSession session
Definition: AbstractClientStorageAdapter.java:36
RealmModel realm
Definition: AbstractClientStorageAdapter.java:37

関数詳解

◆ addClientScope()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.addClientScope ( ClientScopeModel  clientScope,
boolean  defaultScope 
)
inline
217  {
218  throw new ReadOnlyException("client is read only for this update");
219  }

◆ addDefaultRole()

final void org.keycloak.storage.client.UnsupportedOperationsClientStorageAdapter.addDefaultRole ( String  name)
inlineinherited
65  {
66  throw new ModelException("Unsupported operation");
67 
68  }

◆ addProtocolMapper()

ProtocolMapperModel org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.addProtocolMapper ( ProtocolMapperModel  model)
inline
233  {
234  throw new ReadOnlyException("client is read only for this update");
235  }

◆ addRedirectUri()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.addRedirectUri ( String  redirectUri)
inline
85  {
86  throw new ReadOnlyException("client is read only for this update");
87 
88  }

◆ addRole() [1/2]

final RoleModel org.keycloak.storage.client.UnsupportedOperationsClientStorageAdapter.addRole ( String  name)
inlineinherited
40  {
41  throw new ModelException("Unsupported operation");
42  }

◆ addRole() [2/2]

final RoleModel org.keycloak.storage.client.UnsupportedOperationsClientStorageAdapter.addRole ( String  id,
String  name 
)
inlineinherited
45  {
46  throw new ModelException("Unsupported operation");
47  }

◆ addScopeMapping()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.addScopeMapping ( RoleModel  role)
inline
256  {
257  throw new ReadOnlyException("client is read only for this update");
258 
259  }

◆ addWebOrigin()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.addWebOrigin ( String  webOrigin)
inline
68  {
69  throw new ReadOnlyException("client is read only for this update");
70  }

◆ deleteScopeMapping()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.deleteScopeMapping ( RoleModel  role)
inline
262  {
263  throw new ReadOnlyException("client is read only for this update");
264 
265  }

◆ getDefaultRoles()

final List<String> org.keycloak.storage.client.UnsupportedOperationsClientStorageAdapter.getDefaultRoles ( )
inlineinherited
60  {
61  return Collections.EMPTY_LIST;
62  }

◆ getId()

String org.keycloak.storage.client.AbstractClientStorageAdapter.getId ( )
inlineinherited

Creates federated id based on getClientId() method

戻り値
54  {
55  if (storageId == null) {
56  storageId = new StorageId(component.getId(), getClientId());
57  }
58  return storageId.getId();
59  }
ClientStorageProviderModel component
Definition: AbstractClientStorageAdapter.java:38
StorageId storageId
Definition: AbstractClientStorageAdapter.java:39

◆ getRealm()

final RealmModel org.keycloak.storage.client.AbstractClientStorageAdapter.getRealm ( )
inlineinherited
62  {
63  return realm;
64  }
RealmModel realm
Definition: AbstractClientStorageAdapter.java:37

◆ getRegisteredNodes()

Map<String, Integer> org.keycloak.storage.client.AbstractClientStorageAdapter.getRegisteredNodes ( )
inlineinherited

This is for logout. Empty implementation for now. Can override if you can store this information somewhere.

戻り値
93  {
94  return Collections.EMPTY_MAP;
95  }

◆ getRole()

final RoleModel org.keycloak.storage.client.UnsupportedOperationsClientStorageAdapter.getRole ( String  name)
inlineinherited
35  {
36  return null;
37  }

◆ getRoles()

final Set<RoleModel> org.keycloak.storage.client.UnsupportedOperationsClientStorageAdapter.getRoles ( )
inlineinherited
55  {
56  return Collections.EMPTY_SET;
57  }

◆ isSurrogateAuthRequired()

boolean org.keycloak.storage.client.AbstractClientStorageAdapter.isSurrogateAuthRequired ( )
inlineinherited

This method really isn't used by anybody anywhere. Legacy feature never supported.

戻り値
73  {
74  return false;
75  }

◆ registerNode()

void org.keycloak.storage.client.AbstractClientStorageAdapter.registerNode ( String  nodeHost,
int  registrationTime 
)
inlineinherited

This is for logout. Empty implementation for now. Can override if you can store this information somewhere.

戻り値
103  {
104  // do nothing
105  }

◆ removeAttribute()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.removeAttribute ( String  name)
inline
157  {
158  throw new ReadOnlyException("client is read only for this update");
159 
160  }

◆ removeAuthenticationFlowBindingOverride()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.removeAuthenticationFlowBindingOverride ( String  binding)
inline
163  {
164  throw new ReadOnlyException("client is read only for this update");
165 
166  }

◆ removeClientScope()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.removeClientScope ( ClientScopeModel  clientScope)
inline
222  {
223  throw new ReadOnlyException("client is read only for this update");
224  }

◆ removeDefaultRoles()

final void org.keycloak.storage.client.UnsupportedOperationsClientStorageAdapter.removeDefaultRoles ( String...  defaultRoles)
inlineinherited
77  {
78  throw new ModelException("Unsupported operation");
79  }

◆ removeProtocolMapper()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.removeProtocolMapper ( ProtocolMapperModel  mapping)
inline
238  {
239  throw new ReadOnlyException("client is read only for this update");
240 
241  }

◆ removeRedirectUri()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.removeRedirectUri ( String  redirectUri)
inline
91  {
92  throw new ReadOnlyException("client is read only for this update");
93 
94  }

◆ removeRole()

final boolean org.keycloak.storage.client.UnsupportedOperationsClientStorageAdapter.removeRole ( RoleModel  role)
inlineinherited
50  {
51  throw new ModelException("Unsupported operation");
52  }

◆ removeWebOrigin()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.removeWebOrigin ( String  webOrigin)
inline
73  {
74  throw new ReadOnlyException("client is read only for this update");
75 
76  }

◆ setAttribute()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setAttribute ( String  name,
String  value 
)
inline
151  {
152  throw new ReadOnlyException("client is read only for this update");
153 
154  }

◆ setAuthenticationFlowBindingOverride()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setAuthenticationFlowBindingOverride ( String  binding,
String  flowId 
)
inline
169  {
170  throw new ReadOnlyException("client is read only for this update");
171 
172  }

◆ setBaseUrl()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setBaseUrl ( String  url)
inline
109  {
110  throw new ReadOnlyException("client is read only for this update");
111 
112  }

◆ setBearerOnly()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setBearerOnly ( boolean  only)
inline
115  {
116  throw new ReadOnlyException("client is read only for this update");
117 
118  }

◆ setClientAuthenticatorType()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setClientAuthenticatorType ( String  clientAuthenticatorType)
inline
127  {
128  throw new ReadOnlyException("client is read only for this update");
129 
130  }

◆ setClientId()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setClientId ( String  clientId)
inline
38  {
39  throw new ReadOnlyException("client is read only for this update");
40 
41  }

◆ setConsentRequired()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setConsentRequired ( boolean  consentRequired)
inline
187  {
188  throw new ReadOnlyException("client is read only for this update");
189 
190  }

◆ setDescription()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setDescription ( String  description)
inline
50  {
51  throw new ReadOnlyException("client is read only for this update");
52 
53  }

◆ setDirectAccessGrantsEnabled()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setDirectAccessGrantsEnabled ( boolean  directAccessGrantsEnabled)
inline
205  {
206  throw new ReadOnlyException("client is read only for this update");
207 
208  }

◆ setEnabled()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setEnabled ( boolean  enabled)
inline
56  {
57  throw new ReadOnlyException("client is read only for this update");
58 
59  }

◆ setFrontchannelLogout()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setFrontchannelLogout ( boolean  flag)
inline
175  {
176  throw new ReadOnlyException("client is read only for this update");
177 
178  }

◆ setFullScopeAllowed()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setFullScopeAllowed ( boolean  value)
inline
250  {
251  throw new ReadOnlyException("client is read only for this update");
252 
253  }

◆ setImplicitFlowEnabled()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setImplicitFlowEnabled ( boolean  implicitFlowEnabled)
inline
199  {
200  throw new ReadOnlyException("client is read only for this update");
201 
202  }

◆ setManagementUrl()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setManagementUrl ( String  url)
inline
97  {
98  throw new ReadOnlyException("client is read only for this update");
99 
100  }

◆ setName()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setName ( String  name)
inline
44  {
45  throw new ReadOnlyException("client is read only for this update");
46 
47  }

◆ setNodeReRegistrationTimeout()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setNodeReRegistrationTimeout ( int  timeout)
inline
121  {
122 
123  throw new ReadOnlyException("client is read only for this update");
124  }

◆ setNotBefore()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setNotBefore ( int  notBefore)
inline
227  {
228  throw new ReadOnlyException("client is read only for this update");
229 
230  }

◆ setProtocol()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setProtocol ( String  protocol)
inline
145  {
146  throw new ReadOnlyException("client is read only for this update");
147 
148  }

◆ setPublicClient()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setPublicClient ( boolean  flag)
inline
181  {
182  throw new ReadOnlyException("client is read only for this update");
183 
184  }

◆ setRedirectUris()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setRedirectUris ( Set< String >  redirectUris)
inline
79  {
80  throw new ReadOnlyException("client is read only for this update");
81 
82  }

◆ setRegistrationToken()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setRegistrationToken ( String  registrationToken)
inline
139  {
140  throw new ReadOnlyException("client is read only for this update");
141 
142  }

◆ setRootUrl()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setRootUrl ( String  url)
inline
103  {
104  throw new ReadOnlyException("client is read only for this update");
105 
106  }

◆ setSecret()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setSecret ( String  secret)
inline
133  {
134  throw new ReadOnlyException("client is read only for this update");
135 
136  }

◆ setServiceAccountsEnabled()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setServiceAccountsEnabled ( boolean  serviceAccountsEnabled)
inline
211  {
212  throw new ReadOnlyException("client is read only for this update");
213 
214  }

◆ setStandardFlowEnabled()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setStandardFlowEnabled ( boolean  standardFlowEnabled)
inline
193  {
194  throw new ReadOnlyException("client is read only for this update");
195 
196  }

◆ setSurrogateAuthRequired()

void org.keycloak.storage.client.AbstractClientStorageAdapter.setSurrogateAuthRequired ( boolean  surrogateAuthRequired)
inlineinherited

This method really isn't used by anybody anywhere. Legacy feature never supported.

戻り値
83  {
84  // do nothing, we don't do anything with this.
85  }

◆ setWebOrigins()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.setWebOrigins ( Set< String >  webOrigins)
inline
62  {
63  throw new ReadOnlyException("client is read only for this update");
64 
65  }

◆ unregisterNode()

void org.keycloak.storage.client.AbstractClientStorageAdapter.unregisterNode ( String  nodeHost)
inlineinherited

This is for logout. Empty implementation for now. Can override if you can store this information somewhere.

戻り値
113  {
114  // do nothing
115  }

◆ updateClient()

void org.keycloak.storage.client.AbstractClientStorageAdapter.updateClient ( )
inlineinherited

Overriding implementations should call super.updateClient() as this fires off an update event.

122  {
123  session.getKeycloakSessionFactory().publish(new RealmModel.ClientUpdatedEvent() {
124 
125  @Override
126  public ClientModel getUpdatedClient() {
127  return AbstractClientStorageAdapter.this;
128  }
129 
130  @Override
131  public KeycloakSession getKeycloakSession() {
132  return session;
133  }
134  });
135 
136  }
AbstractClientStorageAdapter(KeycloakSession session, RealmModel realm, ClientStorageProviderModel component)
Definition: AbstractClientStorageAdapter.java:42
KeycloakSession session
Definition: AbstractClientStorageAdapter.java:36

◆ updateDefaultRoles()

final void org.keycloak.storage.client.UnsupportedOperationsClientStorageAdapter.updateDefaultRoles ( String...  defaultRoles)
inlineinherited
71  {
72  throw new ModelException("Unsupported operation");
73 
74  }

◆ updateProtocolMapper()

void org.keycloak.storage.client.AbstractReadOnlyClientStorageAdapter.updateProtocolMapper ( ProtocolMapperModel  mapping)
inline
244  {
245  throw new ReadOnlyException("client is read only for this update");
246 
247  }

メンバ詳解

◆ component

ClientStorageProviderModel org.keycloak.storage.client.AbstractClientStorageAdapter.component
protectedinherited

◆ realm

RealmModel org.keycloak.storage.client.AbstractClientStorageAdapter.realm
protectedinherited

◆ session

KeycloakSession org.keycloak.storage.client.AbstractClientStorageAdapter.session
protectedinherited

このクラス詳解は次のファイルから抽出されました: