Class Ceres430Provider
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.Object,java.lang.Object>
-
- java.util.Properties
-
- java.security.Provider
-
- es.gob.jmulticard.jse.provider.ceres.Ceres430Provider
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.Object,java.lang.Object>
public final class Ceres430Provider extends java.security.ProviderProveedor criptográfico JCA para tarjetas CERES 4.30 o superiores. Esta tarjeta es exactamente igual que un DNIe 3.0, por lo que usaremos sus mismas clases. Crea dos servicios:KeyStore- CERES430
Signature- SHA1withRSA, SHA256withRSA, SHA384withRSA, SHA512withRSA
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCERES_PRIVATE_KEYprivate static ApduConnectiondefaultConnectionprivate static java.lang.StringINFOprivate static java.lang.StringNAMEprivate static longserialVersionUIDprivate static java.lang.StringSHA1WITH_RSAFirma RSA con huellas SHA-1.private static java.lang.StringSHA256WITH_RSAFirma RSA con huellas SHA-256.private static java.lang.StringSHA384WITH_RSAFirma RSA con huellas SHA-384.private static java.lang.StringSHA512WITH_RSAFirma RSA con huellas SHA-512.private static doubleVERSION
-
Constructor Summary
Constructors Constructor Description Ceres430Provider()Crea un proveedor JCA para tarjetas FNMT CERES 4.30 o superiores con la conexión por defecto.Ceres430Provider(ApduConnection conn)Crea un proveedor JCA para tarjetas CERES 4.30 o superiores.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static ApduConnectiongetDefaultApduConnection()Obtiene de forma estática el tipo de conexión de APDU que debe usar el keyStore.-
Methods inherited from class java.security.Provider
clear, compute, computeIfAbsent, computeIfPresent, configure, elements, entrySet, forEach, get, getInfo, getName, getOrDefault, getProperty, getService, getServices, getVersion, getVersionStr, isConfigured, keys, keySet, load, merge, put, putAll, putIfAbsent, putService, remove, remove, removeService, replace, replace, replaceAll, toString, values
-
-
-
-
Field Detail
-
SHA512WITH_RSA
private static final java.lang.String SHA512WITH_RSA
Firma RSA con huellas SHA-512.- See Also:
- Constant Field Values
-
SHA384WITH_RSA
private static final java.lang.String SHA384WITH_RSA
Firma RSA con huellas SHA-384.- See Also:
- Constant Field Values
-
SHA256WITH_RSA
private static final java.lang.String SHA256WITH_RSA
Firma RSA con huellas SHA-256.- See Also:
- Constant Field Values
-
SHA1WITH_RSA
private static final java.lang.String SHA1WITH_RSA
Firma RSA con huellas SHA-1.- See Also:
- Constant Field Values
-
CERES_PRIVATE_KEY
private static final java.lang.String CERES_PRIVATE_KEY
- See Also:
- Constant Field Values
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
INFO
private static final java.lang.String INFO
- See Also:
- Constant Field Values
-
VERSION
private static final double VERSION
- See Also:
- Constant Field Values
-
NAME
private static final java.lang.String NAME
- See Also:
- Constant Field Values
-
defaultConnection
private static ApduConnection defaultConnection
-
-
Constructor Detail
-
Ceres430Provider
public Ceres430Provider()
Crea un proveedor JCA para tarjetas FNMT CERES 4.30 o superiores con la conexión por defecto.
-
Ceres430Provider
public Ceres430Provider(ApduConnection conn)
Crea un proveedor JCA para tarjetas CERES 4.30 o superiores.- Parameters:
conn- Conexión a usar para el envío y recepción de APDU.
-
-
Method Detail
-
getDefaultApduConnection
static ApduConnection 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
-
-