public abstract class AbstractStandardWSAuthModule extends Object implements WSAuthModule
WSAuthModule
の実装であり、各種のWSAuthModule
を実装するときのベースになります。コンストラクタと説明 |
---|
AbstractStandardWSAuthModule() |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
authorization(WSUserInfo wsUserInfo,
String serviceName,
String operationName)
AuthorizationClient を利用した認可処理を行います。 |
protected void |
checkAccount(String userCd)
引数に指定されたアカウントがログイン可能であるかの確認を行います。
|
protected boolean |
checkAccountPassword(String userCd,
String password)
アカウントが保持しているパスワードが引数で渡された値であるかを照合します。
|
protected String |
getPasswordByAccountManager(String loginGroupID,
String userID)
非推奨です。
パスワード非可逆化設定によりパスワードが取得できない可能性があります。
checkAccount(String) 、
checkAccountPassword(String, String) を利用してアカウントの確認を行ってください。 |
boolean |
login(WSUserInfo wsUserInfo)
引数に渡されたユーザ情報のユーザIDを元に、強制ログインを行います。
|
protected void |
removeMDC4SecurityLog()
MDC からセキュリティログ用の情報を削除します。 |
protected void |
setMDC4SecurityLog(String loginGroupID,
String userID)
MDC にセキュリティログ用の情報を設定します。 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authentication, check, getAuthType, init, setConfiguration
public boolean authorization(WSUserInfo wsUserInfo, String serviceName, String operationName) throws AuthorizationException
AuthorizationClient
を利用した認可処理を行います。authorization
インタフェース内 WSAuthModule
wsUserInfo
- ユーザ情報serviceName
- Webサービス名operationName
- Webサービスのオペレーション名AuthorizationException
がスローされます)AuthorizationException
- Webサービス・オペレーションの実行権限が無い場合WSAuthModule.authorization(jp.co.intra_mart.foundation.web_service.auth.WSUserInfo,
java.lang.String, java.lang.String)
public boolean login(WSUserInfo wsUserInfo) throws LoginException
login
インタフェース内 WSAuthModule
wsUserInfo
- ユーザ情報LoginException
がスローされます)LoginException
- ログインに失敗した場合WSAuthModule.login(jp.co.intra_mart.foundation.web_service.auth.WSUserInfo)
protected void checkAccount(String userCd) throws AccessSecurityException
AccountInfoManager
を利用します。userCd
- ユーザコードAccessSecurityException
- ログインが行えない場合protected boolean checkAccountPassword(String userCd, String password) throws AccessSecurityException
userCd
- ユーザコードpassword
- パスワードAccessSecurityException
- パスワードの照合に失敗した場合@Deprecated protected String getPasswordByAccountManager(String loginGroupID, String userID) throws AccessSecurityException
checkAccount(String)
、
checkAccountPassword(String, String)
を利用してアカウントの確認を行ってください。AccountInfoManager
を利用します。loginGroupID
- ログイングループID ※使用されませんuserID
- ユーザIDAccessSecurityException
- アカウントが存在しない、または有効ではない場合protected void removeMDC4SecurityLog()
MDC
からセキュリティログ用の情報を削除します。Copyright © 2012 NTT DATA INTRAMART CORPORATION