Class DnieProvider
java.lang.Object
java.util.Dictionary<Object,Object>
java.util.Hashtable<Object,Object>
java.util.Properties
java.security.Provider
es.gob.jmulticard.jse.provider.DnieProvider
- All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>
Proveedor criptográfico JCA para DNIe y tarjetas compatibles.
Crea dos servicios:
KeyStore- DNI
Signature- SHA1withRSA, SHA256withRSA, SHA384withRSA, SHA512withRSA
Cipher.RSA/ECB/PKCS1Padding.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Provider
Provider.Service -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate static ApduConnectionprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final longprivate static final StringFirma RSA con huellas SHA-1.private static final StringFirma RSA con huellas SHA-256.private static final StringFirma RSA con huellas SHA-384.private static final StringFirma RSA con huellas SHA-512.private static final doubleFields inherited from class Properties
defaults -
Constructor Summary
ConstructorsConstructorDescriptionCrea un proveedor JCA para DNI Electrónico (DNIe) con la conexión y el nombre por defecto.DnieProvider(ApduConnection conn) Crea un proveedor JCA para DNI Electrónico (DNIe) con el nombre por defecto.DnieProvider(ApduConnection conn, String name) Crea un proveedor JCA para DNI Electrónico (DNIe) y se le asigna un nombre concreto. -
Method Summary
Modifier and TypeMethodDescription(package private) static ApduConnectionObtiene de forma estática el tipo de conexión de APDU que debe usar el keyStore.booleanMethods inherited from class Provider
clear, compute, computeIfAbsent, computeIfPresent, elements, entrySet, forEach, get, getInfo, getName, getOrDefault, getProperty, getService, getServices, getVersion, getVersionStr, keys, keySet, load, merge, put, putAll, putIfAbsent, putService, remove, remove, removeService, replace, replace, replaceAll, toString, valuesMethods inherited from class Properties
clone, contains, containsKey, containsValue, equals, getProperty, hashCode, isEmpty, list, list, load, loadFromXML, propertyNames, rehash, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames
-
Field Details
-
SHA512WITH_RSA
-
SHA384WITH_RSA
-
SHA256WITH_RSA
-
SHA1WITH_RSA
-
DNIE_PRIVATE_KEY
- See Also:
-
KEYSTORE_DNI
- See Also:
-
KEYSTORE_CERES430
- See Also:
-
CONFIG_PARAM_PROVIDER_NAME
- See Also:
-
CONFIG_PARAM_ALLOW_ANOTHER_CARDS
- See Also:
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
INFO
- See Also:
-
VERSION
private static final double VERSION- See Also:
-
NAME
- See Also:
-
defaultConnection
-
-
Constructor Details
-
DnieProvider
public DnieProvider()Crea un proveedor JCA para DNI Electrónico (DNIe) con la conexión y el nombre por defecto. -
DnieProvider
Crea un proveedor JCA para DNI Electrónico (DNIe) con el nombre por defecto.- Parameters:
conn- Conexión a usar para el envío y recepción de APDU.
-
DnieProvider
Crea un proveedor JCA para DNI Electrónico (DNIe) y se le asigna un nombre concreto.- Parameters:
conn- Conexión a usar para el envío y recepción de APDU.name- Nombre que se le asigna al proveedor.
-
-
Method Details
-
getDefaultApduConnection
Obtiene de forma estática el tipo de conexión de APDU que debe usar el keyStore. Si es nula (se ha invocado al constructor por defecto), es el propioKeyStoreel que decide que conexión usar.- Returns:
- Conexión por defecto
-
configure
-
isConfigured
public boolean isConfigured()- Overrides:
isConfiguredin classProvider
-