|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.hamaf.hikyaku.security.process.PasswordUtil
public class PasswordUtil
タイトル:PasswordUtil is .
説明:
著作権: Copyright (c) 2010/03/16
フィールドの概要 | |
---|---|
static java.lang.String |
MXKEY
|
static java.lang.String |
MXTAG
|
コンストラクタの概要 | |
---|---|
PasswordUtil()
|
メソッドの概要 | |
---|---|
static boolean |
checkChar(java.lang.String pswd)
Describe checkChar method : パスワードの有効文字種類のチェック. |
static boolean |
checkPeriod(java.lang.String modDate,
java.lang.String period)
Describe checkPeriod method : 現在日付がチェック期間内かをチェックする. |
static java.lang.String |
decrypt(java.lang.String pswd)
Describe decrypt method : Base64Decode and decrypt password. |
static java.lang.String |
encrypt(java.lang.String pswd)
Describe encrypt method : encrypt password and Base64Encode. |
static java.lang.String |
getUser(HttpSession session)
Describe getUser method : get userId in session. |
static java.lang.String |
initialPassword()
Describe initialPassword method : return random string. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final java.lang.String MXTAG
public static final java.lang.String MXKEY
コンストラクタの詳細 |
---|
public PasswordUtil()
メソッドの詳細 |
---|
public static boolean checkChar(java.lang.String pswd)
checkChar
method : パスワードの有効文字種類のチェック.
pswd
- a String
: パスワード文字列
boolean
: エラーの場合、true
java.lang.Exception
- if an error occurspublic static boolean checkPeriod(java.lang.String modDate, java.lang.String period) throws java.lang.Exception
checkPeriod
method : 現在日付がチェック期間内かをチェックする.
modDate
- a String
: 範囲チェックとなる基準年月日period
- a String
: チェック期間
boolean
: 範囲内の場合、trueを戻す
java.lang.Exception
- if an error occurspublic static java.lang.String encrypt(java.lang.String pswd) throws java.lang.Exception
encrypt
method : encrypt password and Base64Encode.
pswd
- a String
: パスワード文字列
String
: 暗号化、エンコードした文字列
java.lang.Exception
- if an error occurspublic static java.lang.String decrypt(java.lang.String pswd) throws java.lang.Exception
decrypt
method : Base64Decode and decrypt password.
pswd
- a String
: 暗号化された文字列
String
: デコード、複号化した文字列
java.lang.Exception
- if an error occurspublic static java.lang.String initialPassword()
initialPassword
method : return random string.
String
: 文字列public static java.lang.String getUser(HttpSession session)
getUser
method : get userId in session.
session
- a HttpSession
:
String
: ユーザーID
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |