ConfigurableMynaCardJPKIAP

class ConfigurableMynaCardJPKIAP(sdkConfig: SdkConfigInterface, seed: Long, digitalSignatureCertificate: JPKICertificate? = null, userAuthenticationCertificate: JPKICertificate? = null, personalInfo: JPKIPersonalInfo? = null, digitalSignaturePassword: String? = null, userAuthenticationPassword: String? = null) : MockMynaCardJPKIAP

格納されるデータを設定可能な疑似マイナンバーカードを表すCard

このクラスのインスタンスをMockCardSupplier.getCardの返却値とするようなMockCardSupplierを作成し、 ReaderSession.registerMockCardSupplierを使用してセッションに設定することでモック環境で生成するカード情報を設定できます。 基本4情報(氏名、住所、生年月日、性別)や暗証番号などを設定できます。

基本4情報(氏名、住所、生年月日、性別)の設定

引数の digitalSignatureCertificate を指定していない場合、生成される署名用電子証明書に記載される基本4情報はこの値となります。

不正な形式のテナントIDを指定した場合

設定したテナントIDがUUIDの形式となっていない場合、証明書の取得を行う関数の実行時IllegalArgumentExceptionが発生します。

Parameters

sdkConfig

SDK設定

seed

乱数のシード

digitalSignatureCertificate

署名用電子証明書の設定

userAuthenticationCertificate

利用者証明用電子証明書の設定

personalInfo

署名用電子証明書に格納される基本4情報(氏名、住所、生年月日、性別)

digitalSignaturePassword

署名用証明書を読み出す際のパスワード

userAuthenticationPassword

利用者証明用証明書を読み出す際のパスワード

Constructors

Link copied to clipboard
constructor(sdkConfig: SdkConfigInterface, seed: Long, digitalSignatureCertificate: JPKICertificate? = null, userAuthenticationCertificate: JPKICertificate? = null, personalInfo: JPKIPersonalInfo? = null, digitalSignaturePassword: String? = null, userAuthenticationPassword: String? = null)

テナントIDを引数により指定してConfigurableCardを生成する

constructor(context: ERROR CLASS: Symbol not found for Context, seed: Long, digitalSignatureCertificate: JPKICertificate? = null, userAuthenticationCertificate: JPKICertificate? = null, personalInfo: JPKIPersonalInfo? = null, digitalSignaturePassword: String? = null, userAuthenticationPassword: String? = null)

テナントIDを設定ファイルにより取得してCardを生成する

Properties

Link copied to clipboard

CAの署名用電子証明書

Link copied to clipboard

署名用電子証明書用パスワードの残り試行回数

Link copied to clipboard
open override val digitalSignaturePrivateKey: ERROR CLASS: Symbol not found for RSAKeyParameters

署名用電子証明書の秘密鍵

Link copied to clipboard

CAの利用者証明用証明書

利用者証明用証明書用パスワードの残り試行回数

Link copied to clipboard
open override val userAuthenticationPrivateKey: ERROR CLASS: Symbol not found for RSAKeyParameters

利用者証明用証明書の秘密鍵

Functions

Link copied to clipboard
open override fun changeDigitalSignaturePassword(password: String)

署名用電子証明書用パスワード変更関数

Link copied to clipboard
open override fun changeUserAuthenticationPassword(password: String)

利用者証明用証明書用パスワード変更関数

Link copied to clipboard
open suspend override fun createDigitalSignatureCertificate(): ByteArray

署名用電子証明書を読み出すときに呼び出される関数

Link copied to clipboard
open suspend override fun createUserAuthenticationCertificate(): ByteArray

利用者証明用証明書を読み出すときに呼び出される関数

Link copied to clipboard
open override fun verifyDigitalSignaturePassword(password: String)

入力が署名用電子証明書用パスワードと一致するかを検査する関数

Link copied to clipboard
open override fun verifyUserAuthenticationPassword(password: String)

入力が利用者証明用証明書用パスワードと一致するかを検査する関数