public class WSAuthDigestGenerator4WSSE extends Object implements WSGeneralAuthDigestGenerator
UsernameToken Username="the_who", PasswordDigest="tLDSsdGqfvraHRh8BpqTYRBVy+U=", Nonce="YTBiMWI2OGI2OTE3N2RlZQ==", Created="1966-12-01T12:34:56Z"各項目の説明
項目 | 説明 |
---|---|
Username | ユーザー名 |
Nonce | 暗号的にランダムな値をBase64エンコードした文字列 |
Created | Nonceが作成された日時をISO-8601表記で記述した文字列 |
PasswordDigest | 「Nonce」 「Created」 および 「パスワード」を文字列連結し、 SHA1アルゴリズムでダイジェスト化して生成された文字列を、Base64エンコードした文字列 Password_Digest = Base64 ( SHA-1 ( nonce + created + password ) ) |
コンストラクタと説明 |
---|
WSAuthDigestGenerator4WSSE() |
修飾子とタイプ | メソッドと説明 |
---|---|
static String |
createWsseAuthString(String username,
String password)
WSSE認証用文字列を生成します。
|
static String |
createWsseAuthString(String username,
String password,
String nonce,
String created)
WSSE認証用文字列を生成します。
|
String |
getAuthType()
認証タイプを返却します。
|
static int |
getAutoCreateNonceLength()
Nonceを自動生成する際の、Base64エンコード前のNonceの長さを取得します。
|
String |
getDigest(String userID,
String password)
WS認証ダイジェストを生成します。
|
String |
getDigest(String loginGroupID,
String userID,
String password)
WS認証ダイジェストを生成します。
|
static void |
setAutoCreateNonceLength(int nonceLength)
Nonceを自動生成する際の、Base64エンコード前のNonceの長さを設定します。
|
public static String createWsseAuthString(String username, String password)
username
- ユーザ名password
- パスワードpublic static String createWsseAuthString(String username, String password, String nonce, String created)
username
- ユーザ名password
- パスワードnonce
- 暗号的にランダムな値 (Base64エンコード前)created
- Nonceが作成された日時をISO-8601表記で記述した文字列public static int getAutoCreateNonceLength()
public static void setAutoCreateNonceLength(int nonceLength)
nonceLength
- Nonceの長さpublic String getAuthType()
WSAuthDigestGenerator
getAuthType
インタフェース内 WSAuthDigestGenerator
public String getDigest(String userID, String password)
WSGeneralAuthDigestGenerator
getDigest
インタフェース内 WSGeneralAuthDigestGenerator
userID
- ユーザIDpassword
- パスワードpublic String getDigest(String loginGroupID, String userID, String password)
WSAuthDigestGenerator
getDigest
インタフェース内 WSAuthDigestGenerator
loginGroupID
- ログイングループIDuserID
- ユーザIDpassword
- パスワードCopyright © 2012 NTT DATA INTRAMART CORPORATION