Class JCEMapper
- java.lang.Object
-
- org.apache.xml.security.algorithms.JCEMapper
-
public class JCEMapper extends java.lang.Object
This class maps algorithm identifier URIs to JAVA JCE class names.- Author:
- $Author$
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JCEMapper.Algorithm
Represents the Algorithm xml element
-
Constructor Summary
Constructors Constructor Description JCEMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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??static java.lang.String
getJCEKeyAlgorithmFromURI(java.lang.String AlgorithmURI)
Method getJCEKeyAlgorithmFromURIstatic int
getKeyLengthFromURI(java.lang.String AlgorithmURI)
Returns the keylength in bit for a particular algorithm.static java.lang.String
getProviderId()
Gets the default Provider for obtaining the security algorithmsstatic void
init(org.w3c.dom.Element mappingElement)
Method initstatic void
setProviderId(java.lang.String provider)
Sets the default Provider for obtaining the security algorithmsstatic java.lang.String
translateURItoJCEID(java.lang.String AlgorithmURI)
Method translateURItoJCEID
-
-
-
Method Detail
-
init
public static void init(org.w3c.dom.Element mappingElement) throws java.lang.Exception
Method init- Parameters:
mappingElement
-- Throws:
java.lang.Exception
-
translateURItoJCEID
public static java.lang.String translateURItoJCEID(java.lang.String AlgorithmURI)
Method translateURItoJCEID- Parameters:
AlgorithmURI
-- Returns:
- the JCE standard name corresponding to the given URI
-
getAlgorithmClassFromURI
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??- Parameters:
AlgorithmURI
-- Returns:
- the class name that implements this algorithm
-
getKeyLengthFromURI
public static int getKeyLengthFromURI(java.lang.String AlgorithmURI)
Returns the keylength in bit for a particular algorithm.- Parameters:
AlgorithmURI
-- Returns:
- The length of the key used in the alogrithm
-
getJCEKeyAlgorithmFromURI
public static java.lang.String getJCEKeyAlgorithmFromURI(java.lang.String AlgorithmURI)
Method getJCEKeyAlgorithmFromURI- Parameters:
AlgorithmURI
-- Returns:
- The KeyAlgorithm for the given URI.
-
getProviderId
public static java.lang.String getProviderId()
Gets the default Provider for obtaining the security algorithms- Returns:
- the default providerId.
-
setProviderId
public static void setProviderId(java.lang.String provider)
Sets the default Provider for obtaining the security algorithms- Parameters:
provider
- the default providerId.
-
-