Example usage for org.bouncycastle.asn1.icao LDSSecurityObject getDigestAlgorithmIdentifier

List of usage examples for org.bouncycastle.asn1.icao LDSSecurityObject getDigestAlgorithmIdentifier

Introduction

In this page you can find the example usage for org.bouncycastle.asn1.icao LDSSecurityObject getDigestAlgorithmIdentifier.

Prototype

public AlgorithmIdentifier getDigestAlgorithmIdentifier() 

Source Link

Usage

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());
    }
}