パッケージ jp.co.osstech.libjeid

クラス PassportAP

java.lang.Object
jp.co.osstech.libjeid.PassportAP

public class PassportAP extends Object
パスポートAPを操作するオブジェクトです。
  • コンストラクタの詳細

    • PassportAP

      public PassportAP(JeidReader reader)
      コンストラクタ
      パラメータ:
      reader - JeidReader
  • メソッドの詳細

    • getCardAccess

      public EPCardAccess getCardAccess()
      EF.CardAccess を返します。
      戻り値:
      EF.CardAccess、利用不可なら null
    • hasCardAccess

      public boolean hasCardAccess()
      EF.CardAccess が利用可能(=PACE 対応カードの可能性)を返します。
      戻り値:
      利用可能なら true
    • startBAC

      public void startBAC(EPMRZ mrz) throws InvalidBACKeyException, IOException
      Basic Access Control(BAC)用の鍵交換を行います。
      パラメータ:
      mrz - パスポート番号、生年月日、有効期限から作成したEPMRZオブジェクト
      例外:
      IOException - IOエラー
      InvalidBACKeyException - 鍵が正しくありません
    • readDataGroups

      public EPDataGroups readDataGroups() throws IOException
      パスポートAP内のすべてのデータを読み出します。 このメソッドはreadFiles()に置き換えられます。 互換性維持のために引き続き使用できますが、非推奨となります。
      戻り値:
      パスポートAP内のすべてのデータ
      例外:
      IOException - IOエラー
    • readFiles

      public EPFiles readFiles() throws IOException
      パスポートAP内のすべてのデータを読み出します。
      戻り値:
      パスポートAP内のすべてのデータ
      例外:
      IOException - IOエラー
    • readCommonData

      public EPCommonData readCommonData() throws IOException
      Common Dataを取得します。
      戻り値:
      Common Data
      例外:
      IOException - IOエラー
    • readDocumentSecurityObject

      public EPDocumentSecurityObject readDocumentSecurityObject() throws IOException
      Document Security Objectを取得します。
      戻り値:
      Document Security Object
      例外:
      IOException - IOエラー
    • readDataGroup1

      public EPDataGroup1 readDataGroup1() throws IOException
      Data Group 1を取得します。
      戻り値:
      Data Group 1
      例外:
      IOException - IOエラー
    • readDataGroup2

      public EPDataGroup2 readDataGroup2() throws IOException
      Data Group 2を取得します。
      戻り値:
      Data Group 2
      例外:
      IOException - IOエラー
    • readDataGroup3

      public EPDataGroup3 readDataGroup3() throws IOException
      Data Group 3を取得します。
      戻り値:
      Data Group 3
      例外:
      IOException - IOエラー
    • readDataGroup4

      public EPDataGroup4 readDataGroup4() throws IOException
      Data Group 4を取得します。
      戻り値:
      Data Group 4
      例外:
      IOException - IOエラー
    • readDataGroup5

      public EPDataGroup5 readDataGroup5() throws IOException
      Data Group 5を取得します。
      戻り値:
      Data Group 5
      例外:
      IOException - IOエラー
    • readDataGroup6

      public EPDataGroup6 readDataGroup6() throws IOException
      Data Group 6を取得します。
      戻り値:
      Data Group 6
      例外:
      IOException - IOエラー
    • readDataGroup7

      public EPDataGroup7 readDataGroup7() throws IOException
      Data Group 7を取得します。
      戻り値:
      Data Group 7
      例外:
      IOException - IOエラー
    • readDataGroup8

      public EPDataGroup8 readDataGroup8() throws IOException
      Data Group 8を取得します。
      戻り値:
      Data Group 8
      例外:
      IOException - IOエラー
    • readDataGroup9

      public EPDataGroup9 readDataGroup9() throws IOException
      Data Group 9を取得します。
      戻り値:
      Data Group 9
      例外:
      IOException - IOエラー
    • readDataGroup10

      public EPDataGroup10 readDataGroup10() throws IOException
      Data Group 10を取得します。
      戻り値:
      Data Group 10
      例外:
      IOException - IOエラー
    • readDataGroup11

      public EPDataGroup11 readDataGroup11() throws IOException
      Data Group 11を取得します。
      戻り値:
      Data Group 11
      例外:
      IOException - IOエラー
    • readDataGroup12

      public EPDataGroup12 readDataGroup12() throws IOException
      Data Group 12を取得します。
      戻り値:
      Data Group 12
      例外:
      IOException - IOエラー
    • readDataGroup13

      public EPDataGroup13 readDataGroup13() throws IOException
      Data Group 13を取得します。
      戻り値:
      Data Group 13
      例外:
      IOException - IOエラー
    • readDataGroup14

      public EPDataGroup14 readDataGroup14() throws IOException
      Data Group 14を取得します。
      戻り値:
      Data Group 14
      例外:
      IOException - IOエラー
    • readDataGroup15

      public EPDataGroup15 readDataGroup15() throws IOException
      Data Group 15を取得します。
      戻り値:
      Data Group 15
      例外:
      IOException - IOエラー
    • passiveAuthentication

      public boolean passiveAuthentication(EPDataGroups dgs) throws IOException
      Passive Authenticationを行います。
      パラメータ:
      dgs - EPDataGroupsオブジェクト
      戻り値:
      認証に成功した場合はtrue、そうでない場合はfalse
      例外:
      IOException - IOエラー
    • activeAuthentication

      public boolean activeAuthentication(EPDataGroups dgs) throws IOException
      推奨されていません。
      Active Authenticationを行います。 このメソッドはactiveAuthentication(EPFiles files)に置き換えられます。
      パラメータ:
      dgs - EPDataGroupsオブジェクト
      戻り値:
      認証に成功した場合はtrue、そうでない場合はfalse
      例外:
      IOException - IOエラー
      FileNotFoundException - パスポートがActive Authenticationをサポートしていない場合
    • activeAuthentication

      public boolean activeAuthentication(EPFiles files) throws IOException
      Active Authenticationを行います。 PACE 経路かつ DG14 に Chip Authentication SecurityInfo が含まれる場合、 AA の代わりに Chip Authentication を実行します (一部の card 実装は AA を BAC 限定としているため)。
      パラメータ:
      files - EPFilesオブジェクト
      戻り値:
      認証に成功した場合はtrue、そうでない場合はfalse
      例外:
      IOException - IOエラー
      FileNotFoundException - パスポートがActive Authenticationをサポートしていない場合