|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.veritrans.tercerog.mdk.gw.utils.EncryptionUtils
public class EncryptionUtils
暗号、復号クラス。 ハイブリット暗号方式にて暗号、復号する。 公開鍵暗号方式:RSA:512bit 共通鍵暗号方式:AES/CBC/PKCS5PADDING
フィールドの概要 | |
---|---|
static String |
KEYSTORE_TYPE_JKS
キーストアタイプ(JKS) |
static String |
KEYSTORE_TYPE_PKCS12
キーストアタイプ(PKCS12) |
コンストラクタの概要 | |
---|---|
EncryptionUtils()
|
メソッドの概要 | |
---|---|
byte[] |
base64Dec(String str)
base64Encの逆バージョン。 |
String |
base64Enc(byte[] bytes)
Base64(改行を入れないバージョン)した後、 URLエンコードしなくていいように"/"、"+"、"="を別の文字に変換する。 |
String |
decryption(String storeFile,
String storeType,
String storePass,
String storeAliasName,
String storeAliasPass,
String trustFile,
String trustType,
String trustPass,
String trustAliasName,
String cipher)
復号化。 |
String |
encryption(String storeFile,
String storeType,
String storePass,
String storeAliasName,
String storeAliasPass,
String trustFile,
String trustType,
String trustPass,
String trustAliasName,
String pal)
暗号化。 |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final String KEYSTORE_TYPE_JKS
public static final String KEYSTORE_TYPE_PKCS12
コンストラクタの詳細 |
---|
public EncryptionUtils()
メソッドの詳細 |
---|
public String base64Enc(byte[] bytes) throws Exception
bytes
- Base64化するデータ
Exception
public byte[] base64Dec(String str) throws Exception
str
- Base64を解くデータ
Exception
public String encryption(String storeFile, String storeType, String storePass, String storeAliasName, String storeAliasPass, String trustFile, String trustType, String trustPass, String trustAliasName, String pal) throws Exception
storeFile
- キーストアファイルへのパス。storeType
- キーストアタイプ。storePass
- キーストアファイルのパスワード。storeAliasName
- プライベートキーを取得するエイリアス。(クライアント側)storeAliasPass
- プライベートキーを取得するためのパスワード。trustFile
- トラストストアファイルへのパス。trustType
- トラストストアタイプ。trustPass
- トラストストアファイルのパスワード。trustAliasName
- トラストストアキーを取得するエイリアス。(サーバ側)pal
- 暗号化する文字列。
Exception
public String decryption(String storeFile, String storeType, String storePass, String storeAliasName, String storeAliasPass, String trustFile, String trustType, String trustPass, String trustAliasName, String cipher) throws Exception
storeFile
- キーストアファイルへのパス。storeType
- キーストアタイプ。storePass
- キーストアファイルのパスワード。storeAliasName
- プライベートキーを取得するエイリアス。(クライアント側)storeAliasPass
- プライベートキーを取得するためのパスワード。trustFile
- トラストストアファイルへのパス。trustType
- トラストストアタイプ。trustPass
- トラストストアファイルのパスワード。trustAliasName
- トラストストアキーを取得するエイリアス。(サーバ側)cipher
- 復号化する文字列。
Exception
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |