How to translate an OID to a JCE algorithm name?

Viewed 1438

I am looking for a library that can take a oid such as 1.2.840.10040.4.3 and translate it to its standard name (in this case SHA1withDSA)

Using org.cesecore.certificates.util.AlgorithmTools, I am able to achieve some of the required functionality, but it is very limited.

This is the current code:

String signatureAlgorithmName = AlgorithmTools.getAlgorithmNameFromOID(oid);

Note:

The standard names can be found here

1 Answers
Related