Class JCEMapper
java.lang.Object
org.apache.xml.security.algorithms.JCEMapper
This class maps algorithm identifier URIs to JAVA JCE class names.
- Author:
- $Author$
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Represents the Algorithm xml element -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getAlgorithmClassFromURI
(String AlgorithmURI) Method getAlgorithmClassFromURI NOTE(Raul Benito) It seems a buggy function the loop doesn't do anything??static String
getJCEKeyAlgorithmFromURI
(String AlgorithmURI) Method getJCEKeyAlgorithmFromURIstatic int
getKeyLengthFromURI
(String AlgorithmURI) Returns the keylength in bit for a particular algorithm.static String
Gets the default Provider for obtaining the security algorithmsstatic void
Method initstatic void
setProviderId
(String provider) Sets the default Provider for obtaining the security algorithmsstatic String
translateURItoJCEID
(String AlgorithmURI) Method translateURItoJCEID
-
Constructor Details
-
JCEMapper
public JCEMapper()
-
-
Method Details
-
init
Method init- Parameters:
mappingElement
-- Throws:
Exception
-
translateURItoJCEID
Method translateURItoJCEID- Parameters:
AlgorithmURI
-- Returns:
- the JCE standard name corresponding to the given URI
-
getAlgorithmClassFromURI
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
Returns the keylength in bit for a particular algorithm.- Parameters:
AlgorithmURI
-- Returns:
- The length of the key used in the alogrithm
-
getJCEKeyAlgorithmFromURI
Method getJCEKeyAlgorithmFromURI- Parameters:
AlgorithmURI
-- Returns:
- The KeyAlgorithm for the given URI.
-
getProviderId
Gets the default Provider for obtaining the security algorithms- Returns:
- the default providerId.
-
setProviderId
Sets the default Provider for obtaining the security algorithms- Parameters:
provider
- the default providerId.
-