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

クラス INTextAP

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

public class INTextAP extends Object
券面入力補助APを操作するオブジェクトです。
  • コンストラクタの概要

    コンストラクタ
    コンストラクタ
    説明
    コンストラクタ
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    個人番号文字列を取得します。
    int
    券面入力補助APの暗証番号のカウンタを取得します。
    int
    券面入力補助APの照合番号Aのカウンタを取得します。
    int
    券面入力補助APの照合番号Bのカウンタを取得します。
    4情報を取得します。
    個人番号カードの券面入力補助AP内のすべてのデータを読み出します。
    readFiles(boolean readMyNumber, boolean readAttributes)
    個人番号カードの券面入力補助AP内のすべてのデータを読み出します。
    個人番号を取得します。
    void
    内部認証を有効化/無効化します
    void
    券面入力補助APの暗証番号を入力します。
    void
    券面入力補助APの照合番号Aを入力します。
    void
    券面入力補助APの照合番号Bを入力します。

    クラスから継承されたメソッド java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • コンストラクタの詳細

    • INTextAP

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

    • setEnableInternalAuthentication

      public void setEnableInternalAuthentication(boolean flag)
      内部認証を有効化/無効化します
      パラメータ:
      flag - 内部認証有効化フラグ
    • readFiles

      public INTextFiles readFiles() throws IOException
      個人番号カードの券面入力補助AP内のすべてのデータを読み出します。
      戻り値:
      券面入力補助AP内のすべてのデータ
      例外:
      IOException - IOエラー
    • readFiles

      public INTextFiles readFiles(boolean readMyNumber, boolean readAttributes) throws IOException
      個人番号カードの券面入力補助AP内のすべてのデータを読み出します。
      暗証番号のアクセス制御に従ってデータを読み出します。
      たとえば、
      照合番号Aを入力した場合、マイナンバーのみを読み出します。
      照合番号Bを入力した場合、4属性のみを読み出します。
      4桁の暗証番号を入力した場合、マイナンバーと4属性の両方を読み出します。
      4桁の暗証番号を入力したうえで、読み出すデータを制限したい場合はパラメーターを指定してください。
      パラメータ:
      readMyNumber - trueでマイナンバーを読み出します。デフォルトでtrueです。
      readAttributes - trueで4属性情報を読み出します。デフォルトでtrueです。
      戻り値:
      券面入力補助AP内のすべてのデータ
      例外:
      IOException - IOエラー
    • getMyNumber

      個人番号文字列を取得します。
      戻り値:
      個人番号文字列
      例外:
      IOException - IOエラー
      InvalidPinException - PINの誤り
      UnsupportedOperationException - サポートされていない操作
    • readMyNumber

      個人番号を取得します。
      戻り値:
      個人番号
      例外:
      IOException - IOエラー
      UnsupportedOperationException - サポートされていない操作
    • readAttributes

      public INTextAttributes readAttributes() throws IOException
      4情報を取得します。
      戻り値:
      4情報
      例外:
      IOException - IOエラー
    • getPin

      public int getPin() throws IOException
      券面入力補助APの暗証番号のカウンタを取得します。
      戻り値:
      カウンタ
      例外:
      IOException - IOエラー
    • verifyPin

      public void verifyPin(String pin) throws IOException, InvalidPinException
      券面入力補助APの暗証番号を入力します。
      パラメータ:
      pin - 暗証番号(4桁)
      例外:
      IOException - IOエラー
      InvalidPinException - PINの誤り
    • getPinA

      public int getPinA() throws IOException
      券面入力補助APの照合番号Aのカウンタを取得します。
      戻り値:
      カウンタ
      例外:
      IOException - IOエラー
    • verifyPinA

      public void verifyPinA(String pin) throws IOException, InvalidPinException
      券面入力補助APの照合番号Aを入力します。
      パラメータ:
      pin - 照合番号A(12桁)
      例外:
      IOException - IOエラー
      InvalidPinException - PINの誤り
    • getPinB

      public int getPinB() throws IOException
      券面入力補助APの照合番号Bのカウンタを取得します。
      戻り値:
      カウンタ
      例外:
      IOException - IOエラー
    • verifyPinB

      public void verifyPinB(String pin) throws IOException, InvalidPinException
      券面入力補助APの照合番号Bを入力します。
      パラメータ:
      pin - 照合番号B(14桁)
      例外:
      IOException - IOエラー
      InvalidPinException - PINの誤り