List of usage examples for org.bouncycastle.asn1.icao LDSSecurityObject getDigestAlgorithmIdentifier
public AlgorithmIdentifier getDigestAlgorithmIdentifier()
From source file:org.jmrtd.lds.SODFile.java
License:Open Source License
private static String getDigestAlgorithm(LDSSecurityObject ldsSecurityObject) { try {/* ww w .jav a 2 s. co m*/ return SignedDataUtil .lookupMnemonicByOID(ldsSecurityObject.getDigestAlgorithmIdentifier().getAlgorithm().getId()); } catch (NoSuchAlgorithmException nsae) { LOGGER.severe("Exception: " + nsae.getMessage()); return null; // throw new IllegalStateException(nsae.toString()); } }