インタフェース AuthenticationProvider
- すべてのスーパーインタフェース:
ServiceInitListener<AuthService>
- 既知の実装クラスのリスト:
AuthenticationProviderBase,BuiltinAuthenticationProvider,ConfigFileAuthenticationProvider,InternalAuthenticationProvider,JaasAuthenticationProvider,LdapAuthenticationProvider,RememberMeTokenAuthenticationProvider,SimpleAuthTokenAuthenticationProvider
ログイン認証Provider
-
メソッドの概要
修飾子とタイプメソッド説明default voidログイン処理が成功した後のコールバックdefault voidafterLogout(AccountHandle user) ログアウト処理が完了(セッションも無効化)した後のコールバックvoidハウスキーピング処理から呼び出される。AuthenticationProviderがアカウントの登録、更新、削除機能を保持する場合、 その操作インタフェースであるAccountManagementModuleを返却する。推奨されていません。default AutoLoginHandlerClass<? extends Credential> Service-Configに設定された認証プロバイダ名を取得する。booleanlogin(Credential credential) ログイン処理を行い、認証されたユーザーへの参照を示すUserHandleを返す。voidlogout(AccountHandle user) 指定のユーザーのログアウト処理をする。インタフェースから継承されたメソッド org.iplass.mtp.spi.ServiceInitListener
destroyed, inited
-
メソッドの詳細
-
login
ログイン処理を行い、認証されたユーザーへの参照を示すUserHandleを返す。- パラメータ:
credential-- 戻り値:
-
logout
指定のユーザーのログアウト処理をする。- パラメータ:
user-
-
afterLogout
ログアウト処理が完了(セッションも無効化)した後のコールバック -
afterLoginSuccess
ログイン処理が成功した後のコールバック- パラメータ:
user-credential-
-
getTrustedAuthValidator
TrustedAuthValidator getTrustedAuthValidator() -
cleanupData
void cleanupData()ハウスキーピング処理から呼び出される。ゴミデータを消す。 -
getAccountManagementModule
AccountManagementModule getAccountManagementModule()AuthenticationProviderがアカウントの登録、更新、削除機能を保持する場合、 その操作インタフェースであるAccountManagementModuleを返却する。 登録、更新、削除ができない場合は、nullを返却する。- 戻り値:
-
getProviderName
String getProviderName()Service-Configに設定された認証プロバイダ名を取得する。- 戻り値:
- String
-
getAuthLogger
推奨されていません。このProviderで利用するAuthLoggerを取得。 nullを返却した場合は、デフォルトのAuthLoggerが利用される。- 戻り値:
-
getUserEntityResolver
UserEntityResolver getUserEntityResolver() -
getCredentialType
Class<? extends Credential> getCredentialType() -
getAutoLoginHandler
-
isSelectableOnAuthPolicy
boolean isSelectableOnAuthPolicy()
-