Methods Summary |
---|
public static java.lang.String | getAlgorithmClassFromURI(java.lang.String AlgorithmURI)Method getAlgorithmClassFromURI
NOTE(Raul Benito) It seems a buggy function the loop doesn't do
anything??
if (true)
if (log.isLoggable(java.util.logging.Level.FINE)) log.log(java.util.logging.Level.FINE, "Request for URI " + AlgorithmURI);
return ((Algorithm) algorithmsMap.get(AlgorithmURI)).algorithmClass;
|
static com.sun.org.apache.xml.internal.security.algorithms.JCEMapper$Algorithm | getAlgorithmMapping(java.lang.String algoURI)
return ((Algorithm)algorithmsMap.get(algoURI));
|
public static java.lang.String | getJCEKeyAlgorithmFromURI(java.lang.String AlgorithmURI)Method getJCEKeyAlgorithmFromURI
return ((Algorithm) algorithmsMap.get(AlgorithmURI)).requiredKey;
|
public static int | getKeyLengthFromURI(java.lang.String AlgorithmURI)Returns the keylength in bit for a particular algorithm.
return Integer.parseInt(((Algorithm) algorithmsMap.get(AlgorithmURI)).keyLength);
|
public static java.lang.String | getProviderId()Gets the default Provider for obtaining the security algorithms
return providerName;
|
public static void | init(org.w3c.dom.Element mappingElement)Method init
loadAlgorithms((Element)mappingElement.getElementsByTagName("Algorithms").item(0));
|
static void | loadAlgorithms(org.w3c.dom.Element algorithmsEl)
Element[] algorithms = XMLUtils.selectNodes(algorithmsEl.getFirstChild(),Init.CONF_NS,"Algorithm");
for (int i = 0 ;i < algorithms.length ;i ++) {
Element el = algorithms[i];
String id = el.getAttribute("URI");
String jceName = el.getAttribute("JCEName");
uriToJCEName.put(id, jceName);
algorithmsMap.put(id, new Algorithm(el));
}
|
public static void | setProviderId(java.lang.String provider)Sets the default Provider for obtaining the security algorithms
providerName=provider;
|
public static java.lang.String | translateURItoJCEID(java.lang.String AlgorithmURI)Method translateURItoJCEID
if (true)
if (log.isLoggable(java.util.logging.Level.FINE)) log.log(java.util.logging.Level.FINE, "Request for URI " + AlgorithmURI);
String jceName = (String) uriToJCEName.get(AlgorithmURI);
return jceName;
|