クラス DataScrambler
java.lang.Object
jp.co.asterisk.asreader.a60d.sdk.util.DataScrambler
データスクランブル処理です。
-
メソッドの概要
修飾子とタイプメソッド説明void
スクランブルパターンをクリアします。static DataScrambler
DataScramblerインスタンスを返します。static byte[]
makeOfflinePassword
(byte[] handyterminalCode) オフラインパスワード生成。void
makeScramblePattern
(byte[] terminalPassword) スクランブルパターン生成。static byte[]
scramble
(byte[] data) 入力データをスクランブルします。
-
メソッドの詳細
-
getInstance
DataScramblerインスタンスを返します。- 戻り値:
- DataScrambler
-
scramble
public static byte[] scramble(byte[] data) 入力データをスクランブルします。 あらかじめ、makeScramblePatternでスクランブルパターンを生成しておく必要があります。- パラメータ:
data
- スクランブルデータ- 戻り値:
- 変換後データ
-
makeOfflinePassword
public static byte[] makeOfflinePassword(byte[] handyterminalCode) オフラインパスワード生成。 ハンディターミナルコードからオフラインパスワードを生成して返却します。- パラメータ:
handyterminalCode
- ハンディターミナルコード- 戻り値:
- オフラインパスワード
-
makeScramblePattern
public void makeScramblePattern(byte[] terminalPassword) スクランブルパターン生成。 ターミナルパスワードからスクランブルパターンを生成します。- パラメータ:
terminalPassword
- ターミナルパスワード
-
clearScramblePattern
public void clearScramblePattern()スクランブルパターンをクリアします。
-