public class StandardPasswordHistoryAccessor extends Object implements PasswordHistoryAccessor
タグ名 | 属性 | 説明 | デフォルト値 |
---|---|---|---|
change-password-first-login | (なし) | 初回ログイン時のパスワード変更要求の有無を設定します。 | false |
password-expire-limit | (なし) | パスワードの有効期限(日数)を設定します。0の場合無期限となります。 | 0 |
password-history-count | (なし) | 何世代前まで世代管理を行うかを設定します。0の場合履歴管理を行いません。 | 0 |
deny-client-types | (なし) | パスワード変更画面に遷移させないクライアントタイプをカンマ区切りで設定します。 | (なし) |
password-expire-page | client-type | パスワード変更画面URLを設定します。(client-type属性値別に複数指定できます。) client-type属性:クライアントタイプ |
/user/password/expire |
check-password | enable | パスワードチェックの利用有無を判定します。 enable属性: true:利用 false:利用なし check-password-class属性:Javaインタフェース jp.co.intra_mart.foundation.security.password.PasswordHistoryAccessor を実装したクラスのFQDNを指定してください。 指定されている場合は、指定されたクラスの checkPassword(String, String, String) メソッドに処理が委譲されます。 |
false |
check-password-class | (なし) | ||
check-password-length | enable |
パスワードの文字数判定の利用有無とその範囲を設定します。 enable属性: true:利用 false:利用なし min属性:パスワードの最小文字数(半角数字,0以上)を設定します。 max属性:パスワードの最大文字数(半角数字,最大50)を設定します。 51文字以上は入力した場合は、50文字に設定されます。 min属性 < max属性の関係になっていない場合はデフォルト値が設定されます。 |
false |
min | 0 | ||
max | 50 | ||
allow-latin-letters | required | 使用可能文字の設定(アルファベット)を行います。 required属性:使用可能文字から最低1文字は設定を必要とするかどうか true:設定を必要とする false:設定を必要としない enable属性: true:利用 false:利用なし |
allow-latin-lettersタグ:ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz required属性:false enable属性:true |
enable | |||
allow-number | required | 使用可能文字の設定(数字)を行います。 required属性:使用可能文字から最低1文字は設定を必要とするかどうか true:設定を必要とする false:設定を必要としない enable属性: true:利用 false:利用なし |
allow-numberタグ:0123456789 required属性:false enable属性:true |
enable | |||
allow-extra-char | required | 使用可能文字の設定(その他の文字列、記号など)を行います。 required属性:使用可能文字から最低1文字は設定を必要とするかどうか true:設定を必要とする false:設定を必要としない enable属性: true:利用 false:利用なし |
allow-extra-charタグ:_-.+$#!/@ required属性:false enable属性:true |
enable | |||
allow-group-char | required | 使用可能文字グループの設定を行います。 複数設定することが可能です。 required属性:使用可能文字から最低1文字は設定を必要とするかどうか true:設定を必要とする false:設定を必要としない |
allow-group-charタグ:(なし) required属性:false |
deny-old-password | include | パスワード履歴管理で管理されているパスワードと一致する場合に拒否するかどうかを設定します。 true:拒否する false:拒否しない include属性: true:パスワード履歴管理で管理されているパスワードを含む場合に拒否する false:拒否しない |
deny-old-passwordタグ:false include属性:false |
deny-userid | include | useridと同じパスワードを拒否するかどうかを設定します。 true:拒否する false:拒否しない include属性: true:useridを含む場合に拒否する false:拒否しない |
deny-useridタグ:false include属性:false |
password-cryption-class | (なし) | 暗号化を行うクラスを設定します。 アカウントのパスワードを不可逆な形式で保存する設定を行っている場合はこの設定は無視され、アカウントのパスワードと同じ形式でハッシュ化されます。 |
jp.co.intra_mart. foundation.security.cryption. standard.StandardCryption |
return-initial-page | (なし) | パスワード有効期限切れの場合、パスワード変更後 ログイン画面に戻るかそのままログイン処理を継続し てログインするか判定します。 true:ログイン画面に戻ります。 false:ログイン処理を継続してログインします。 |
false |
#getPasswordHistories(String)
#getLatestPasswordHistory(String)
コンストラクタと説明 |
---|
StandardPasswordHistoryAccessor() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addPasswordHistory(String groupId,
String userCd,
String password)
パスワード履歴の追加。
|
PasswordHistoryResult |
checkPassword(String groupId,
String userId,
String password)
入力パスワードのチェック。
|
PasswordHistoryResult |
checkPasswordHistory(String groupId,
String userId,
String password)
入力パスワードのチェック。
|
void |
clearPasswordHistories(String groupId)
パスワード履歴の消去。
|
void |
clearPasswordHistory(String groupId,
String userCd)
指定ユーザのパスワード履歴の消去。
|
String |
createPassword(int count)
パスワードをランダムに生成。
|
PasswordHistory |
getLatestPasswordHistory(String groupId,
String userCd)
最新のパスワードと更新日付を取得。
|
int |
getPasswordExpireLimit(String groupId)
設定したパスワードの有効期限を取得。
|
PasswordHistory[] |
getPasswordHistories(String groupId,
String userCd)
パスワード履歴を取得。
|
int |
getPasswordHistoryCount(String groupId,
String userCd)
パスワード履歴数を取得。
|
int |
getPasswordHistoryManagedCount(String groupId)
世代管理数を取得。
|
String |
getPasswordPage(String groupId)
パスワード変更画面のURLを取得。
|
void |
init(Node defaultNode,
Node groupNode)
パラメータを取得。
|
boolean |
isChangePasswordFirstLogin(String groupId)
初回ログイン時にパスワード変更要求を行うかの判定。
|
boolean |
isDenyClientType(String clientType)
クライアントタイプの判定
パラメータdeny-client-typesに記述があるクライアントタイプの判定を行う。 |
boolean |
isFirstLogin(String groupId,
String userId)
初回ログインの判定
|
boolean |
isForwardInitialPage(String groupId)
パスワード変更後の画面遷移。
|
boolean |
isPasswordExpired(String groupId,
String userId,
String clientType,
Date date)
パスワードが有効期限切れかどうかの判定。
|
boolean |
isPasswordHistoryManaged(String groupId)
履歴管理の有無。
|
boolean |
setFirstLogin(String groupId,
String userId,
boolean isFirstLogin)
初回ログインの設定を行います。
|
void |
verifyPasswordHistory(String groupId,
String userCd,
int remain)
ユーザのパスワードを消去。
|
public void addPasswordHistory(String groupId, String userCd, String password) throws PasswordHistoryException
addPasswordHistory
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。userCd
- ユーザCDpassword
- 入力パスワードPasswordHistoryException
- パスワード履歴の追加に失敗した場合にスローされます。public PasswordHistoryResult checkPassword(String groupId, String userId, String password) throws PasswordHistoryException
checkPasswordHistory(String, String, String)
を利用してください。checkPassword(String, String, String)
メソッドに処理を委譲します。checkPassword
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。userId
- ユーザIDpassword
- 入力パスワードPasswordHistoryException
- 入力パスワードのチェックに失敗した場合にスローされます。public PasswordHistoryResult checkPasswordHistory(String groupId, String userId, String password) throws PasswordHistoryException
checkPassword(String, String, String)
によるパスワードチェックを行います。checkPasswordHistory
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。userId
- ユーザIDpassword
- 入力パスワードPasswordHistoryException
- 入力パスワードのチェックに失敗した場合にスローされます。public void clearPasswordHistories(String groupId) throws PasswordHistoryException
clearPasswordHistories
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。PasswordHistoryException
- パスワード履歴の消去に失敗した場合にスローされます。public void clearPasswordHistory(String groupId, String userCd) throws PasswordHistoryException
clearPasswordHistory
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。userCd
- ユーザCDPasswordHistoryException
- 指定ユーザのパスワード履歴の消去に失敗した場合にスローされます。public String createPassword(int count)
createPassword
インタフェース内 PasswordHistoryAccessor
count
- パスワードの長さpublic PasswordHistory getLatestPasswordHistory(String groupId, String userCd) throws PasswordHistoryException
getLatestPasswordHistory
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。userCd
- ユーザIDPasswordHistoryException
- 最新のパスワード情報の取得に失敗した場合にスローされます。public int getPasswordExpireLimit(String groupId)
getPasswordExpireLimit
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。public PasswordHistory[] getPasswordHistories(String groupId, String userCd) throws PasswordHistoryException
getPasswordHistories
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。userCd
- ユーザIDPasswordHistoryException
- パスワード履歴の取得に失敗した場合にスローされます。public int getPasswordHistoryCount(String groupId, String userCd) throws PasswordHistoryException
getPasswordHistoryCount
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。userCd
- ユーザIDPasswordHistoryException
- パスワード履歴数の取得に失敗した場合にスローされます。public int getPasswordHistoryManagedCount(String groupId)
getPasswordHistoryManagedCount
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。public String getPasswordPage(String groupId)
getPasswordPage
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。public void init(Node defaultNode, Node groupNode)
init
インタフェース内 PasswordHistoryAccessor
defaultNode
- デフォルトパラメータgroupNode
- グループパラメータpublic boolean isChangePasswordFirstLogin(String groupId)
isChangePasswordFirstLogin
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。public boolean isDenyClientType(String clientType)
isDenyClientType
インタフェース内 PasswordHistoryAccessor
clientType
- クライアントタイプpublic boolean isFirstLogin(String groupId, String userId)
isFirstLogin
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。userId
- ユーザIDpublic boolean isForwardInitialPage(String groupId)
isForwardInitialPage
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。public boolean isPasswordExpired(String groupId, String userId, String clientType, Date date)
isPasswordExpired
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。userId
- ユーザIDclientType
- クライアントタイプdate
- パスワードのチェックの基準となる日付。省略された場合、現在日付が利用されます。public boolean isPasswordHistoryManaged(String groupId)
isPasswordHistoryManaged
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。public boolean setFirstLogin(String groupId, String userId, boolean isFirstLogin)
setFirstLogin
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。userId
- ユーザIDisFirstLogin
- 初回ログインとするかどうか?public void verifyPasswordHistory(String groupId, String userCd, int remain) throws PasswordHistoryException
verifyPasswordHistory
インタフェース内 PasswordHistoryAccessor
groupId
- (グループID) - 互換用パラメータのため利用していません。userCd
- ユーザCDremain
- 残す履歴の数PasswordHistoryException
- パスワード履歴の消去に失敗した場合にスローされます。Copyright © 2012 NTT DATA INTRAMART CORPORATION