Class DnieProvider

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,​java.lang.Object>

    public final class DnieProvider
    extends java.security.Provider
    Proveedor criptográfico JCA para DNIe. Crea dos servicios:
    KeyStore
    DNI
    Signature
    SHA1withRSA, SHA256withRSA, SHA384withRSA, SHA512withRSA
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.security.Provider

        java.security.Provider.Service
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static ApduConnection defaultConnection  
      private static java.lang.String DNIE_PRIVATE_KEY  
      private static java.lang.String INFO  
      private static java.lang.String NAME  
      private static long serialVersionUID  
      private static java.lang.String SHA1WITH_RSA
      Firma RSA con huellas SHA-1.
      private static java.lang.String SHA256WITH_RSA
      Firma RSA con huellas SHA-256.
      private static java.lang.String SHA384WITH_RSA
      Firma RSA con huellas SHA-384.
      private static java.lang.String SHA512WITH_RSA
      Firma RSA con huellas SHA-512.
      private static double VERSION  
      • Fields inherited from class java.util.Properties

        defaults
    • Constructor Summary

      Constructors 
      Constructor Description
      DnieProvider()
      Crea un proveedor JCA para DNI Electrónico (DNIe) con la conexión por defecto.
      DnieProvider​(ApduConnection conn)
      Crea un proveedor JCA para DNI Electrónico (DNIe).
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static ApduConnection getDefaultApduConnection()
      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
      • Methods inherited from class java.util.Properties

        clone, contains, containsKey, containsValue, equals, getProperty, hashCode, isEmpty, list, list, load, loadFromXML, propertyNames, rehash, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DnieProvider

        public DnieProvider()
        Crea un proveedor JCA para DNI Electrónico (DNIe) con la conexión por defecto.
      • DnieProvider

        public DnieProvider​(ApduConnection conn)
        Crea un proveedor JCA para DNI Electrónico (DNIe).
        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 propio KeyStore el que decide que conexión usar.
        Returns:
        Conexión por defecto