public final class DnieLoadParameter
extends java.lang.Object
implements java.security.KeyStore.LoadStoreParameter
Modifier and Type | Class and Description |
---|---|
static class |
DnieLoadParameter.Builder
Builder design pattern class.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
_canList |
protected ApduConnection |
_connection |
protected java.lang.String |
_keyStoreType |
protected MrtdCard |
_mrtdCardInfo |
protected android.nfc.Tag |
_nfcTag |
protected java.lang.String |
_selectedCan |
protected SignatureNotification |
_signatureNotification |
Modifier and Type | Method and Description |
---|---|
static DnieLoadParameter.Builder |
getBuilder(java.lang.String[] canList,
android.nfc.Tag nfcTag)
DnieLoadParameter instance builder.
|
static DnieLoadParameter.Builder |
getBuilder(java.lang.String can,
android.nfc.Tag nfcTag)
DnieLoadParameter instance builder.
|
ApduConnection |
getConnection()
Return the connection established.
|
java.lang.String |
getKeyStoreType()
Return the keystore type finally recovered (useful if "AUTO" is selected).
|
MrtdCard |
getMrtdCardInfo()
If the card contains MRTD info, returns it.
|
java.security.KeyStore.ProtectionParameter |
getProtectionParameter()
Gets the parameter used to protect keystore data.
|
java.lang.String |
getSelectedCan()
Returns the CAN successfully verified.
|
protected android.nfc.Tag _nfcTag
protected java.lang.String[] _canList
protected java.lang.String _selectedCan
protected MrtdCard _mrtdCardInfo
protected ApduConnection _connection
protected java.lang.String _keyStoreType
protected SignatureNotification _signatureNotification
public static DnieLoadParameter.Builder getBuilder(java.lang.String can, android.nfc.Tag nfcTag)
can
- CAN visible in the DNIe v3.0.nfcTag
- NFC connection recovered.public static DnieLoadParameter.Builder getBuilder(java.lang.String[] canList, android.nfc.Tag nfcTag)
canList
- List of the CAN (máx 10) the DNIe v3.0 (only one must be valid).nfcTag
- NFC connection recovered.public java.security.KeyStore.ProtectionParameter getProtectionParameter()
java.security.KeyStore.LoadStoreParameter
getProtectionParameter
in interface java.security.KeyStore.LoadStoreParameter
public java.lang.String getSelectedCan()
public MrtdCard getMrtdCardInfo()
public java.lang.String getKeyStoreType()
public ApduConnection getConnection()