Class SodFile

  • All Implemented Interfaces:
    java.io.Serializable , org.jmrtd.lds.LDSElement , org.jmrtd.lds.LDSFile

    
    public class SodFile
    extends AbstractTaggedLDSFile
                        

    Represents the SOD file (Document Security Object).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • getDigestAlgorithm

         String getDigestAlgorithm()

        The hash algorithm that was used to calculate the hash values of the DataGroups.

        Returns:

        the common mnemonic string (such as "SHA1", "SHA-256")

      • getDataGroupHashes

         Map<Integer, Array<byte>> getDataGroupHashes()

        Convenience method to extract the DataGroup hashes from the LDS Security Object. Returns a hash value for each DataGroup that is present on the chip.

        Returns:

        a map with the hash values. Use the DataGroup Number (1-16) as the key.

      • isSignatureValid

         boolean isSignatureValid()

        Whether the signature of the signed content could be verified with the public key of the document certificate.

        Returns:

        true if signed content could be verified.

      • getLdsSecurityObject

         LDSSecurityObject getLdsSecurityObject()

        The LDS Security object.

        Returns:

        parsed signed-content of the SOD file, a LDS Security Object.