Example usage for org.bouncycastle.asn1.icao LDSVersionInfo getLdsVersion

List of usage examples for org.bouncycastle.asn1.icao LDSVersionInfo getLdsVersion

Introduction

In this page you can find the example usage for org.bouncycastle.asn1.icao LDSVersionInfo getLdsVersion.

Prototype

public String getLdsVersion() 

Source Link

Usage

From source file:org.jmrtd.lds.SODFile.java

License:Open Source License

/**
 * Gets the version of the LDS if stored in the Security Object (SOd).
 *
 * @return the version of the LDS in "aabb" format or null if LDS < V1.8
 *
 * @since LDS V1.8/*from   www.  ja v a 2  s  .c  o m*/
 */
public String getLDSVersion() {
    LDSVersionInfo ldsVersionInfo = getLDSSecurityObject(signedData).getVersionInfo();
    if (ldsVersionInfo == null) {
        return null;
    } else {
        return ldsVersionInfo.getLdsVersion();
    }
}