public final class CryptionUtil extends Object
Cryption
インタフェースを実装したクラスです。
<cryption-config>
.....
<cryption category="sample-category" default="true">
<cryption-class>jp.co.intra_mart.foundation.security.cryption.Cryptionを実装したクラス</cryption-class>
</cryption>
.....
</cryption-config>
CryptionRuntimeException
がスローされます。修飾子とタイプ | メソッドと説明 |
---|---|
static boolean |
checkSignature(String base,
String signature)
署名文字列が正しいかチェックします。
|
static void |
clearCache()
非推奨です。
開発用です。クラスタに含まれるノードのうち、リクエストを受け付けたノードのみを対象として設定のクリアを行います。
|
static String |
createSignature(String base)
署名文字列を作成します。
|
static String |
decrypt(String secret)
デフォルトの暗号化・復号化モジュールを利用して、文字列を復号化します。
|
static String |
decrypt(String category,
String secret)
指定されたカテゴリの暗号化・復号化モジュールを利用して、文字列を復号化します。
|
static String |
encrypt(String plane)
デフォルトの暗号化・復号化モジュールを利用して、文字列を暗号化します。
|
static String |
encrypt(String category,
String plane)
指定されたカテゴリの暗号化・復号化モジュールを利用して、文字列を暗号化します。
|
public static boolean checkSignature(String base, String signature)
base
- 署名文字列のベースとなった文字列signature
- 署名文字列@Deprecated public static void clearCache()
public static String createSignature(String base)
Adler32
チェックサムを利用しています。Long.toString(long, int)
を利用して文字列化しています。Character.MAX_RADIX
です。base
- 署名文字列のベースとなる文字列public static String decrypt(String secret)
Cryption
を実装したクラスです。null
を返却します。secret
- 暗号化された文字列Cryption
public static String decrypt(String category, String secret)
Cryption
を実装したクラスです。decrypt(String)
を参照してください。null
を返却します。category
- 暗号化・復号化モジュールカテゴリsecret
- 暗号化された文字列Cryption
public static String encrypt(String plane)
Cryption
を実装したクラスです。decrypt(String)
を参照してください。null
を返却します。plane
- 暗号化する文字列Cryption
public static String encrypt(String category, String plane)
Cryption
を実装したクラスです。decrypt(String)
を参照してください。null
を返却します。category
- 暗号化・復号化モジュールカテゴリplane
- 暗号化する文字列Cryption
Copyright © 2012 NTT DATA INTRAMART CORPORATION