public class Loader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Loader.InitInfo
Class with the info once the keystore is loaded.
|
Constructor and Description |
---|
Loader() |
Modifier and Type | Method and Description |
---|---|
static Loader.InitInfo |
init(java.lang.String[] canList,
android.nfc.Tag tag)
Loads DNIe keystore and return some useful information.
|
static Loader.InitInfo |
init(java.lang.String[] canList,
android.nfc.Tag tag,
SignatureNotification signatureNotification)
Loads DNIe keystore and return some useful information.
|
static Loader.InitInfo |
init(java.lang.String[] canList,
android.nfc.Tag tag,
SignatureNotification signatureNotification,
java.lang.String keyStoreType)
Loads DNIe keystore and return some useful information.
|
static Loader.InitInfo |
init(java.lang.String can,
android.nfc.Tag tag)
Loads DNIe keystore and return some useful information.
|
static void |
saveCan2DB(CANSpecDO canInfo,
android.content.Context context)
Save or update the CAN info into a record of the built in CAN database.
|
public static Loader.InitInfo init(java.lang.String can, android.nfc.Tag tag) throws java.security.GeneralSecurityException, java.io.IOException
can
- single CAN for DNIe communication.tag
- Etiqueta de conexión con la SC.java.security.GeneralSecurityException
java.io.IOException
public static Loader.InitInfo init(java.lang.String[] canList, android.nfc.Tag tag) throws java.security.GeneralSecurityException, java.io.IOException
canList
- CAN list for DNIe communication.tag
- Etiqueta de conexión con la SC.java.security.GeneralSecurityException
java.io.IOException
public static Loader.InitInfo init(java.lang.String[] canList, android.nfc.Tag tag, SignatureNotification signatureNotification) throws java.security.GeneralSecurityException, java.io.IOException
canList
- CAN list for DNIe communication.tag
- Etiqueta de conexión con la SC.signatureNotification
- Instance implementing es.gob.fnmt.dniedroid.gui.SignatureNotification interface.java.security.GeneralSecurityException
java.io.IOException
public static Loader.InitInfo init(java.lang.String[] canList, android.nfc.Tag tag, SignatureNotification signatureNotification, java.lang.String keyStoreType) throws java.security.GeneralSecurityException, java.io.IOException
canList
- CAN list for DNIe communication.tag
- Etiqueta de conexión con la SC.signatureNotification
- Instance implementing es.gob.fnmt.dniedroid.gui.SignatureNotification interface.keyStoreType
- Type of SC to detect.java.security.GeneralSecurityException
java.io.IOException
public static void saveCan2DB(CANSpecDO canInfo, android.content.Context context)
canInfo
- Object with the information to save.context
- Application context.