Class JCEMapper

java.lang.Object
org.apache.xml.security.algorithms.JCEMapper

public class JCEMapper extends Object
This class maps algorithm identifier URIs to JAVA JCE class names.
Author:
$Author$
  • Constructor Details

    • JCEMapper

      public JCEMapper()
  • Method Details

    • init

      public static void init(Element mappingElement) throws Exception
      Method init
      Parameters:
      mappingElement -
      Throws:
      Exception
    • translateURItoJCEID

      public static String translateURItoJCEID(String AlgorithmURI)
      Method translateURItoJCEID
      Parameters:
      AlgorithmURI -
      Returns:
      the JCE standard name corresponding to the given URI
    • getAlgorithmClassFromURI

      public static String getAlgorithmClassFromURI(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(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 String getJCEKeyAlgorithmFromURI(String AlgorithmURI)
      Method getJCEKeyAlgorithmFromURI
      Parameters:
      AlgorithmURI -
      Returns:
      The KeyAlgorithm for the given URI.
    • getProviderId

      public static String getProviderId()
      Gets the default Provider for obtaining the security algorithms
      Returns:
      the default providerId.
    • setProviderId

      public static void setProviderId(String provider)
      Sets the default Provider for obtaining the security algorithms
      Parameters:
      provider - the default providerId.