/** * Adds information about provider services into HashMap. */ public static synchronized void initServiceInfo(Provider p) { for (Provider.Service service : p.getServices()) { String type = service.getType(); if (cachedSecureRandomService == null && type.equals("SecureRandom")) { cachedSecureRandomService = service; } String key = type + "." + service.getAlgorithm().toUpperCase(Locale.US); if (!services.containsKey(key)) { services.put(key, service); } for (String alias : Engine.door.getAliases(service)) { key = type + "." + alias.toUpperCase(Locale.US); if (!services.containsKey(key)) { services.put(key, service); } } } }
/** * Adds information about provider services into HashMap. */ public static synchronized void initServiceInfo(Provider p) { for (Provider.Service service : p.getServices()) { String type = service.getType(); if (cachedSecureRandomService == null && type.equals("SecureRandom")) { cachedSecureRandomService = service; } String key = type + "." + service.getAlgorithm().toUpperCase(Locale.US); if (!services.containsKey(key)) { services.put(key, service); } for (String alias : Engine.door.getAliases(service)) { key = type + "." + alias.toUpperCase(Locale.US); if (!services.containsKey(key)) { services.put(key, service); } } } }
/** * Adds information about provider services into HashMap. */ public static synchronized void initServiceInfo(Provider p) { for (Provider.Service service : p.getServices()) { String type = service.getType(); if (cachedSecureRandomService == null && type.equals("SecureRandom")) { cachedSecureRandomService = service; } String key = type + "." + service.getAlgorithm().toUpperCase(Locale.US); if (!services.containsKey(key)) { services.put(key, service); } for (String alias : Engine.door.getAliases(service)) { key = type + "." + alias.toUpperCase(Locale.US); if (!services.containsKey(key)) { services.put(key, service); } } } }
/** * Adds information about provider services into HashMap. */ public static synchronized void initServiceInfo(Provider p) { for (Provider.Service service : p.getServices()) { String type = service.getType(); if (cachedSecureRandomService == null && type.equals("SecureRandom")) { cachedSecureRandomService = service; } String key = type + "." + service.getAlgorithm().toUpperCase(Locale.US); if (!services.containsKey(key)) { services.put(key, service); } for (String alias : Engine.door.getAliases(service)) { key = type + "." + alias.toUpperCase(Locale.US); if (!services.containsKey(key)) { services.put(key, service); } } } }
/** * Adds information about provider services into HashMap. */ public static synchronized void initServiceInfo(Provider p) { for (Provider.Service service : p.getServices()) { String type = service.getType(); if (cachedSecureRandomService == null && type.equals("SecureRandom")) { cachedSecureRandomService = service; } String key = type + "." + service.getAlgorithm().toUpperCase(Locale.US); if (!services.containsKey(key)) { services.put(key, service); } for (String alias : Engine.door.getAliases(service)) { key = type + "." + alias.toUpperCase(Locale.US); if (!services.containsKey(key)) { services.put(key, service); } } } }
/** * Adds information about provider services into HashMap. */ public static synchronized void initServiceInfo(Provider p) { for (Provider.Service service : p.getServices()) { String type = service.getType(); if (cachedSecureRandomService == null && type.equals("SecureRandom")) { cachedSecureRandomService = service; } String key = type + "." + service.getAlgorithm().toUpperCase(Locale.US); if (!services.containsKey(key)) { services.put(key, service); } for (String alias : Engine.door.getAliases(service)) { key = type + "." + alias.toUpperCase(Locale.US); if (!services.containsKey(key)) { services.put(key, service); } } } }
/** * Adds information about provider services into HashMap. */ public static synchronized void initServiceInfo(Provider p) { for (Provider.Service service : p.getServices()) { String type = service.getType(); if (cachedSecureRandomService == null && type.equals("SecureRandom")) { cachedSecureRandomService = service; } String key = type + "." + service.getAlgorithm().toUpperCase(Locale.US); if (!services.containsKey(key)) { services.put(key, service); } for (String alias : Engine.door.getAliases(service)) { key = type + "." + alias.toUpperCase(Locale.US); if (!services.containsKey(key)) { services.put(key, service); } } } }