/** * * Adds information about provider services into HashMap. * * @param p */ public static void initServiceInfo(java.security.Provider p) { java.security.Provider.Service serv; String key; String type; String alias; java.lang.StringBuilder sb = new java.lang.StringBuilder(128); for (java.util.Iterator<java.security.Provider.Service> it1 = p.getServices().iterator(); it1.hasNext(); ) { serv = it1.next(); type = serv.getType(); sb.delete(0, sb.length()); key = sb.append(type).append(".").append( //$NON-NLS-1$ Util.toUpperCase(serv.getAlgorithm())).toString(); if (!services.containsKey(key)) { services.put(key, serv); } for (java.util.Iterator<String> it2 = Engine.door.getAliases(serv); it2.hasNext(); ) { alias = it2.next(); sb.delete(0, sb.length()); key = sb.append(type).append(".").append(Util.toUpperCase(alias)) //$NON-NLS-1$ .toString(); if (!services.containsKey(key)) { services.put(key, serv); } } } }