public class JCEMapper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JCEMapper.Algorithm
Represents the Algorithm xml element
|
Constructor and Description |
---|
JCEMapper() |
Modifier and Type | Method and Description |
---|---|
static String |
getAlgorithmClassFromURI(String algorithmURI)
Method getAlgorithmClassFromURI
|
static int |
getIVLengthFromURI(String algorithmURI) |
static String |
getJCEKeyAlgorithmFromURI(String algorithmURI)
Method getJCEKeyAlgorithmFromURI
|
static String |
getJCEProviderFromURI(String algorithmURI)
Method getJCEProviderFromURI
|
static int |
getKeyLengthFromURI(String algorithmURI)
Returns the keylength in bits for a particular algorithm.
|
static String |
getProviderId()
Gets the default Provider for obtaining the security algorithms
|
static void |
register(String id,
JCEMapper.Algorithm algorithm)
Method register
|
static void |
registerDefaultAlgorithms()
This method registers the default algorithms.
|
static void |
setProviderId(String provider)
Sets the default Provider for obtaining the security algorithms
|
static String |
translateURItoJCEID(String algorithmURI)
Method translateURItoJCEID
|
public static void register(String id, JCEMapper.Algorithm algorithm)
id
- algorithm
- SecurityException
- if a security manager is installed and the
caller does not have permission to register the JCE algorithmpublic static void registerDefaultAlgorithms()
public static String translateURItoJCEID(String algorithmURI)
algorithmURI
- public static String getAlgorithmClassFromURI(String algorithmURI)
algorithmURI
- public static int getKeyLengthFromURI(String algorithmURI)
algorithmURI
- public static int getIVLengthFromURI(String algorithmURI)
public static String getJCEKeyAlgorithmFromURI(String algorithmURI)
algorithmURI
- public static String getJCEProviderFromURI(String algorithmURI)
algorithmURI
- public static String getProviderId()
public static void setProviderId(String provider)
provider
- the default providerId.SecurityException
- if a security manager is installed and the
caller does not have permission to register the JCE algorithmCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.