public class PasswordHistoryManager extends Object
StandardPasswordHistoryAccessor
タグ名 | 属性名 | 説明 | デフォルト値 |
---|---|---|---|
group-default | accessor-class | パスワード履歴管理のデフォルトパラメータです。 accessor-classには利用するアクセッサクラスを設定します。 |
jp.co.intra_mart.foundation. security.password. StandardPasswardHistoryAccessor |
group | accessor-class | テナントの情報を所持し、複数記述することが可能です。 |
jp.co.intra_mart.foundation. security.password. StandardPasswardHistoryAccessor |
name | なし |
コンストラクタと説明 |
---|
PasswordHistoryManager()
PasswordHistoryManagerのインスタンスを生成します。
|
PasswordHistoryManager(String groupId)
非推奨です。
PasswordHistoryManager() を利用してください。 |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addPasswordHistory(String userCd,
String password)
パスワード履歴の追加。
|
PasswordHistoryResult |
checkPassword(String userCd,
String password)
パスワードの入力チェック。
|
PasswordHistoryResult |
checkPasswordHistory(String userCd,
String password)
パスワードの入力チェック。
|
static void |
clearInstance() |
void |
clearPasswordHistories()
パスワード履歴の消去。
|
void |
clearPasswordHistory(String userCd)
指定ユーザのパスワード履歴の消去。
|
String |
createPassword(int count)
パスワードをランダムに生成します。
|
String |
getGroupId() |
PasswordHistory |
getLatestPasswordHistory(String userCd)
最新のパスワードと更新日付を取得。
|
int |
getPasswordExpireLimit()
設定したパスワードの有効期限を取得。
|
PasswordHistory[] |
getPasswordHistories(String userCd)
パスワード履歴を取得。
|
int |
getPasswordHistoryCount(String userCd)
パスワード履歴数を取得。
|
int |
getPasswordHistoryManagedCount()
世代管理数を取得。
|
String |
getPasswordPage()
パスワード変更画面のURLを取得。
|
boolean |
isChangePasswordFirstLogin()
初回ログイン時のパスワード変更要求を行うかの判定。
|
boolean |
isDenyClientType(String clientType)
クライアントタイプの判定
パラメータmobile-client-typesに記述があるクライアントタイプの判定を行う。 |
boolean |
isFirstLogin(String userCd)
初回ログインまたは仮パスワードの判定
初回ログインまたは仮パスワードかどうかを判定します。 |
boolean |
isForwardInitialPage()
パスワード変更後の画面遷移。
|
boolean |
isPasswordExpired(String userCd,
String clientType,
Date date)
パスワード有効期限切れかどうかの判定。
|
boolean |
isPasswordHistoryManaged()
履歴管理の有無。
|
boolean |
setFirstLogin(String userCd,
boolean isFirstLogin)
初回ログインの設定を行います。
|
void |
verifyPasswordHistory(String userCd,
int remain)
ユーザのパスワード履歴を消去。
|
public PasswordHistoryManager()
@Deprecated public PasswordHistoryManager(String groupId)
PasswordHistoryManager()
を利用してください。groupId
- グループIDpublic static void clearInstance()
public void addPasswordHistory(String userCd, String password) throws PasswordHistoryException
userCd
- ユーザCDpassword
- パスワードPasswordHistoryException
- パスワード履歴の追加に失敗した場合にスローされます。public PasswordHistoryResult checkPassword(String userCd, String password) throws PasswordHistoryException
checkPasswordHistory(String, String)
を利用してください。userCd
- ユーザCDpassword
- パスワードPasswordHistoryException
- パスワードの入力チェックに失敗した場合にスローされます。public PasswordHistoryResult checkPasswordHistory(String userCd, String password) throws PasswordHistoryException
userCd
- ユーザCDpassword
- パスワードPasswordHistoryException
- パスワードの入力チェックに失敗した場合にスローされます。public void clearPasswordHistories() throws PasswordHistoryException
PasswordHistoryException
- パスワード履歴の消去に失敗した場合にスローされます。public void clearPasswordHistory(String userCd) throws PasswordHistoryException
userCd
- ユーザCDPasswordHistoryException
- 指定ユーザのパスワードの消去に失敗した場合にスローされます。public String createPassword(int count)
count
- パスワードの長さpublic String getGroupId()
public PasswordHistory getLatestPasswordHistory(String userCd) throws PasswordHistoryException
userCd
- ユーザCDPasswordHistoryException
- 最新のパスワード情報の取得に失敗した場合にスローされます。public int getPasswordExpireLimit()
public PasswordHistory[] getPasswordHistories(String userCd) throws PasswordHistoryException
userCd
- ユーザCDPasswordHistoryException
- パスワード履歴の取得に失敗した場合にスローされます。public int getPasswordHistoryCount(String userCd) throws PasswordHistoryException
userCd
- ユーザCDPasswordHistoryException
- パスワード履歴数の取得に失敗した場合にスローされます。public int getPasswordHistoryManagedCount()
public String getPasswordPage()
public boolean isChangePasswordFirstLogin()
public boolean isDenyClientType(String clientType)
clientType
- クライアントタイプpublic boolean isFirstLogin(String userCd)
userCd
- ユーザCDpublic boolean isForwardInitialPage()
public boolean isPasswordExpired(String userCd, String clientType, Date date)
userCd
- ユーザCDclientType
- クライアント種別date
- パスワードのチェックの基準となる日付。省略された場合、現在日付が利用されます。public boolean isPasswordHistoryManaged()
public boolean setFirstLogin(String userCd, boolean isFirstLogin)
userCd
- ユーザCDisFirstLogin
- 初回ログインとするかどうか?public void verifyPasswordHistory(String userCd, int remain) throws PasswordHistoryException
userCd
- ユーザCDremain
- 残す履歴の数PasswordHistoryException
- 指定ユーザのパスワード履歴の消去に失敗した場合にスローされます。Copyright © 2012 NTT DATA INTRAMART CORPORATION