Class ProviderUtil


  • public final class ProviderUtil
    extends java.lang.Object
    Utilidades comunes a todos los proveedores.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_PROVIDER_CLASSNAME
      Nombre de la clase por defecto para conexión con las tarjetas.
      private static java.util.List<java.lang.String> FORBIDDEN_PROVIDERS
      Proveedores ligados a dispositivos hardware o bibliotecas externas.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ProviderUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ApduConnection getDefaultConnection()
      Obtiene la conexión por defecto.
      static java.lang.String getDefaultOtherProvider​(java.lang.String serviceName, java.lang.String serviceAlgorithm)
      Obtiene el proveedor por defecto para un servicio y un algoritmo dados y no ligado a un dispositivo hardware o a una biblioteca externa a Java.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_PROVIDER_CLASSNAME

        public static final java.lang.String DEFAULT_PROVIDER_CLASSNAME
        Nombre de la clase por defecto para conexión con las tarjetas.
        See Also:
        Constant Field Values
      • FORBIDDEN_PROVIDERS

        private static final java.util.List<java.lang.String> FORBIDDEN_PROVIDERS
        Proveedores ligados a dispositivos hardware o bibliotecas externas.
    • Constructor Detail

      • ProviderUtil

        private ProviderUtil()
    • Method Detail

      • getDefaultConnection

        public static ApduConnection getDefaultConnection()
        Obtiene la conexión por defecto.
        Returns:
        Conexión por defecto ("es.gob.jmulticard.jse.smartcardio.SmartcardIoConnection").
      • getDefaultOtherProvider

        public static java.lang.String getDefaultOtherProvider​(java.lang.String serviceName,
                                                               java.lang.String serviceAlgorithm)
                                                        throws java.security.NoSuchAlgorithmException
        Obtiene el proveedor por defecto para un servicio y un algoritmo dados y no ligado a un dispositivo hardware o a una biblioteca externa a Java.
        Parameters:
        serviceName - Nombre del servicio.
        serviceAlgorithm - Nombre del algoritmo.
        Returns:
        Proveedor por defecto no ligado a un dispositivo hardware.
        Throws:
        java.security.NoSuchAlgorithmException - Si no se encuentra un proveedor por defecto no ligado a un dispositivo hardware para el servicio y el algoritmo proporcionados.