keycloak
公開メンバ関数 | 全メンバ一覧
org.keycloak.storage.user.UserRegistrationProvider インタフェース
org.keycloak.storage.user.UserRegistrationProvider の継承関係図
Inheritance graph
org.keycloak.storage.user.UserRegistrationProvider 連携図
Collaboration graph

公開メンバ関数

UserModel addUser (RealmModel realm, String username)
 
boolean removeUser (RealmModel realm, UserModel user)
 

詳解

Optional capability interface implemented by UserStorageProviders. Implement this interface if your provider supports adding and removing users.

著者
Bill Burke
バージョン
Revision
1

関数詳解

◆ addUser()

UserModel org.keycloak.storage.user.UserRegistrationProvider.addUser ( RealmModel  realm,
String  username 
)

All storage providers that implement this interface will be looped through. If this method returns null, then the next storage provider's addUser() method will be called. If no storage providers handle the add, then the user will be created in local storage.

Returning null is useful when you want optional support for adding users. For example, our LDAP provider can enable and disable the ability to add users.

引数
realm
username
戻り値

org.keycloak.models.cache.infinispan.UserCacheSession, org.keycloak.storage.ldap.LDAPStorageProvider, org.keycloak.storage.UserStorageManager, org.keycloak.models.jpa.JpaUserProviderで実装されています。

◆ removeUser()

boolean org.keycloak.storage.user.UserRegistrationProvider.removeUser ( RealmModel  realm,
UserModel  user 
)

Called if user originated from this provider.

If a local user is linked to this provider, this method will be called before local storage's removeUser() method is invoked.

If you are using an import strategy, and this is a local user linked to this provider, this method will be called before local storage's removeUser() method is invoked. Also, you DO NOT need to remove the imported user. The runtime will handle this for you.

引数
realm
user
戻り値

org.keycloak.models.cache.infinispan.UserCacheSession, org.keycloak.storage.ldap.LDAPStorageProvider, org.keycloak.storage.UserStorageManager, org.keycloak.models.jpa.JpaUserProviderで実装されています。


このインタフェース詳解は次のファイルから抽出されました: