パッケージ jp.co.osstech.libjeid
クラス PassportAP
java.lang.Object
jp.co.osstech.libjeid.PassportAP
パスポートAPを操作するオブジェクトです。
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明boolean推奨されていません。booleanactiveAuthentication(EPFiles files) Active Authenticationを行います。EF.CardAccess を返します。booleanEF.CardAccess が利用可能(=PACE 対応カードの可能性)を返します。booleanPassive Authenticationを行います。Common Dataを取得します。Data Group 1を取得します。Data Group 10を取得します。Data Group 11を取得します。Data Group 12を取得します。Data Group 13を取得します。Data Group 14を取得します。Data Group 15を取得します。Data Group 2を取得します。Data Group 3を取得します。Data Group 4を取得します。Data Group 5を取得します。Data Group 6を取得します。Data Group 7を取得します。Data Group 8を取得します。Data Group 9を取得します。パスポートAP内のすべてのデータを読み出します。Document Security Objectを取得します。パスポートAP内のすべてのデータを読み出します。voidBasic Access Control(BAC)用の鍵交換を行います。
-
コンストラクタの詳細
-
PassportAP
コンストラクタ- パラメータ:
reader- JeidReader
-
-
メソッドの詳細
-
getCardAccess
EF.CardAccess を返します。- 戻り値:
- EF.CardAccess、利用不可なら null
-
hasCardAccess
public boolean hasCardAccess()EF.CardAccess が利用可能(=PACE 対応カードの可能性)を返します。- 戻り値:
- 利用可能なら true
-
startBAC
Basic Access Control(BAC)用の鍵交換を行います。- パラメータ:
mrz- パスポート番号、生年月日、有効期限から作成したEPMRZオブジェクト- 例外:
IOException- IOエラーInvalidBACKeyException- 鍵が正しくありません
-
readDataGroups
パスポートAP内のすべてのデータを読み出します。 このメソッドはreadFiles()に置き換えられます。 互換性維持のために引き続き使用できますが、非推奨となります。- 戻り値:
- パスポートAP内のすべてのデータ
- 例外:
IOException- IOエラー
-
readFiles
パスポートAP内のすべてのデータを読み出します。- 戻り値:
- パスポートAP内のすべてのデータ
- 例外:
IOException- IOエラー
-
readCommonData
Common Dataを取得します。- 戻り値:
- Common Data
- 例外:
IOException- IOエラー
-
readDocumentSecurityObject
Document Security Objectを取得します。- 戻り値:
- Document Security Object
- 例外:
IOException- IOエラー
-
readDataGroup1
Data Group 1を取得します。- 戻り値:
- Data Group 1
- 例外:
IOException- IOエラー
-
readDataGroup2
Data Group 2を取得します。- 戻り値:
- Data Group 2
- 例外:
IOException- IOエラー
-
readDataGroup3
Data Group 3を取得します。- 戻り値:
- Data Group 3
- 例外:
IOException- IOエラー
-
readDataGroup4
Data Group 4を取得します。- 戻り値:
- Data Group 4
- 例外:
IOException- IOエラー
-
readDataGroup5
Data Group 5を取得します。- 戻り値:
- Data Group 5
- 例外:
IOException- IOエラー
-
readDataGroup6
Data Group 6を取得します。- 戻り値:
- Data Group 6
- 例外:
IOException- IOエラー
-
readDataGroup7
Data Group 7を取得します。- 戻り値:
- Data Group 7
- 例外:
IOException- IOエラー
-
readDataGroup8
Data Group 8を取得します。- 戻り値:
- Data Group 8
- 例外:
IOException- IOエラー
-
readDataGroup9
Data Group 9を取得します。- 戻り値:
- Data Group 9
- 例外:
IOException- IOエラー
-
readDataGroup10
Data Group 10を取得します。- 戻り値:
- Data Group 10
- 例外:
IOException- IOエラー
-
readDataGroup11
Data Group 11を取得します。- 戻り値:
- Data Group 11
- 例外:
IOException- IOエラー
-
readDataGroup12
Data Group 12を取得します。- 戻り値:
- Data Group 12
- 例外:
IOException- IOエラー
-
readDataGroup13
Data Group 13を取得します。- 戻り値:
- Data Group 13
- 例外:
IOException- IOエラー
-
readDataGroup14
Data Group 14を取得します。- 戻り値:
- Data Group 14
- 例外:
IOException- IOエラー
-
readDataGroup15
Data Group 15を取得します。- 戻り値:
- Data Group 15
- 例外:
IOException- IOエラー
-
passiveAuthentication
Passive Authenticationを行います。- パラメータ:
dgs- EPDataGroupsオブジェクト- 戻り値:
- 認証に成功した場合はtrue、そうでない場合はfalse
- 例外:
IOException- IOエラー
-
activeAuthentication
推奨されていません。Active Authenticationを行います。 このメソッドはactiveAuthentication(EPFiles files)に置き換えられます。- パラメータ:
dgs- EPDataGroupsオブジェクト- 戻り値:
- 認証に成功した場合はtrue、そうでない場合はfalse
- 例外:
IOException- IOエラーFileNotFoundException- パスポートがActive Authenticationをサポートしていない場合
-
activeAuthentication
Active Authenticationを行います。 PACE 経路かつ DG14 に Chip Authentication SecurityInfo が含まれる場合、 AA の代わりに Chip Authentication を実行します (一部の card 実装は AA を BAC 限定としているため)。- パラメータ:
files- EPFilesオブジェクト- 戻り値:
- 認証に成功した場合はtrue、そうでない場合はfalse
- 例外:
IOException- IOエラーFileNotFoundException- パスポートがActive Authenticationをサポートしていない場合
-