Class AlgNameMapper
java.lang.Object
org.apache.harmony.security.utils.AlgNameMapper
public class AlgNameMapper extends Object
Provides Algorithm Name to OID and OID to Algorithm Name mappings. Some known
mappings are hardcoded. Tries to obtain additional mappings from installed
providers during initialization.
-
Method Summary
Modifier and Type Method Description static StringgetStandardName(String algName)Returns Algorithm name for given algorithm aliasstatic booleanisOID(String alias)Checks if parameter represents OIDstatic Stringmap2AlgName(String oid)Returns algName for OIDstatic Stringmap2OID(String algName)Returns OID for algNamestatic Stringnormalize(String oid)Removes leading "OID." from oid String passedstatic voidsetSource(AlgNameMapperSource source)
-
Method Details
-
map2OID
Returns OID for algName- Parameters:
algName- algorithm name to be mapped- Returns:
- OID as String
-
map2AlgName
Returns algName for OID- Parameters:
oid- OID to be mapped- Returns:
- algorithm name
-
getStandardName
Returns Algorithm name for given algorithm alias- Parameters:
algName- - alias- Returns:
- algorithm name
-
isOID
Checks if parameter represents OID- Parameters:
alias- alias to be checked- Returns:
- 'true' if parameter represents OID
-
normalize
Removes leading "OID." from oid String passed- Parameters:
oid- string that may contain leading "OID."- Returns:
- string passed without leading "OID."
-
setSource
-