クラス RememberMeTokenAuthenticationProvider
java.lang.Object
org.iplass.mtp.impl.auth.authenticate.rememberme.RememberMeTokenAuthenticationProvider
- すべての実装されたインタフェース:
AuthenticationProvider,AutoLoginHandler,ServiceInitListener<AuthService>
public class RememberMeTokenAuthenticationProvider
extends Object
implements AuthenticationProvider, AutoLoginHandler
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明voidafterLoginSuccess(AccountHandle account) ログイン処理が成功した後のコールバックvoidafterLogout(AccountHandle user) ログアウト処理が完了(セッションも無効化)した後のコールバックvoidハウスキーピング処理から呼び出される。voidService破棄時に呼び出されます。AuthenticationProviderがアカウントの登録、更新、削除機能を保持する場合、 その操作インタフェースであるAccountManagementModuleを返却する。このProviderで利用するAuthLoggerを取得。Class<? extends Credential> Service-Configに設定された認証プロバイダ名を取得する。handle(RequestContext req, boolean isLogined, UserContext user) handleException(AutoLoginInstruction ali, ApplicationException e, RequestContext req, boolean isLogined, UserContext user) voidhandleSuccess(AutoLoginInstruction ali, RequestContext req, UserContext user) voidinited(AuthService service, Config config) Service初期化時に呼び出されます。booleanbooleanlogin(Credential credential) ログイン処理を行い、認証されたユーザーへの参照を示すUserHandleを返す。voidlogout(AccountHandle user) 指定のユーザーのログアウト処理をする。voidsetAuthenticationProvider(AuthenticationProvider baseAuthenticationProvider) voidsetAuthTokenType(String authTokenType) voidsetAutoLoginHandler(AutoLoginHandler autoLoginHandler) voidsetClientStore(AuthTokenClientStore clientStore) voidsetDeleteTokenOnFailure(boolean deleteTokenOnFailure) voidsetProviderName(String providerName) voidsetSelectableOnAuthPolicy(boolean selectableOnAuthPolicy) voidsetTrustedAuthValidator(TrustedAuthValidator trustedAuthValidator) クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitインタフェースから継承されたメソッド org.iplass.mtp.impl.auth.authenticate.AutoLoginHandler
inited
-
コンストラクタの詳細
-
RememberMeTokenAuthenticationProvider
public RememberMeTokenAuthenticationProvider()
-
-
メソッドの詳細
-
getAuthenticationProvider
-
setAuthenticationProvider
-
isDeleteTokenOnFailure
public boolean isDeleteTokenOnFailure() -
setDeleteTokenOnFailure
public void setDeleteTokenOnFailure(boolean deleteTokenOnFailure) -
getClientStore
-
setClientStore
-
getAuthTokenType
-
setAuthTokenType
-
inited
インタフェースからコピーされた説明:ServiceInitListenerService初期化時に呼び出されます。- 定義:
initedインタフェース内ServiceInitListener<AuthService>- パラメータ:
service-config-
-
destroyed
public void destroyed()インタフェースからコピーされた説明:ServiceInitListenerService破棄時に呼び出されます。- 定義:
destroyedインタフェース内ServiceInitListener<AuthService>
-
cleanupData
public void cleanupData()インタフェースからコピーされた説明:AuthenticationProviderハウスキーピング処理から呼び出される。ゴミデータを消す。- 定義:
cleanupDataインタフェース内AuthenticationProvider
-
login
インタフェースからコピーされた説明:AuthenticationProviderログイン処理を行い、認証されたユーザーへの参照を示すUserHandleを返す。- 定義:
loginインタフェース内AuthenticationProvider- パラメータ:
credential-- 戻り値:
-
afterLoginSuccess
インタフェースからコピーされた説明:AuthenticationProviderログイン処理が成功した後のコールバック- 定義:
afterLoginSuccessインタフェース内AuthenticationProvider- パラメータ:
account-
-
afterLogout
インタフェースからコピーされた説明:AuthenticationProviderログアウト処理が完了(セッションも無効化)した後のコールバック- 定義:
afterLogoutインタフェース内AuthenticationProvider
-
logout
インタフェースからコピーされた説明:AuthenticationProvider指定のユーザーのログアウト処理をする。- 定義:
logoutインタフェース内AuthenticationProvider- パラメータ:
user-
-
getAccountManagementModule
インタフェースからコピーされた説明:AuthenticationProviderAuthenticationProviderがアカウントの登録、更新、削除機能を保持する場合、 その操作インタフェースであるAccountManagementModuleを返却する。 登録、更新、削除ができない場合は、nullを返却する。- 定義:
getAccountManagementModuleインタフェース内AuthenticationProvider- 戻り値:
-
isSelectableOnAuthPolicy
public boolean isSelectableOnAuthPolicy()- 定義:
isSelectableOnAuthPolicyインタフェース内AuthenticationProvider
-
setSelectableOnAuthPolicy
public void setSelectableOnAuthPolicy(boolean selectableOnAuthPolicy) -
getProviderName
インタフェースからコピーされた説明:AuthenticationProviderService-Configに設定された認証プロバイダ名を取得する。- 定義:
getProviderNameインタフェース内AuthenticationProvider- 戻り値:
- String
-
setProviderName
-
getAuthLogger
インタフェースからコピーされた説明:AuthenticationProviderこのProviderで利用するAuthLoggerを取得。 nullを返却した場合は、デフォルトのAuthLoggerが利用される。- 定義:
getAuthLoggerインタフェース内AuthenticationProvider- 戻り値:
-
getUserEntityResolver
- 定義:
getUserEntityResolverインタフェース内AuthenticationProvider
-
setTrustedAuthValidator
-
getTrustedAuthValidator
- 定義:
getTrustedAuthValidatorインタフェース内AuthenticationProvider
-
getCredentialType
- 定義:
getCredentialTypeインタフェース内AuthenticationProvider
-
getAutoLoginHandler
- 定義:
getAutoLoginHandlerインタフェース内AuthenticationProvider
-
setAutoLoginHandler
-
handleException
public Exception handleException(AutoLoginInstruction ali, ApplicationException e, RequestContext req, boolean isLogined, UserContext user) - 定義:
handleExceptionインタフェース内AutoLoginHandler
-
handleSuccess
- 定義:
handleSuccessインタフェース内AutoLoginHandler
-
handle
- 定義:
handleインタフェース内AutoLoginHandler
-