Package org.jmrtd.lds

Class TerminalAuthenticationInfo

  • All Implemented Interfaces:
    Serializable, LDSElement

    public class TerminalAuthenticationInfo
    extends SecurityInfo
    A concrete SecurityInfo structure that stores terminal authentication info, see EAC 1.11 specification. This data structure provides detailed information on an implementation of Terminal Authentication.
    • The object identifier protocol SHALL identify the Terminal Authentication Protocol as the specific protocol may change over time.
    • The integer version SHALL identify the version of the protocol. Currently, versions 1 and 2 are supported.
    • The sequence efCVCA MAY be used to indicate a (short) file identifier of the file EF.CVCA. It MUST be used, if the default (short) file identifier is not used.
    Version:
    $Revision: 1805 $
    Author:
    The JMRTD team ([email protected])
    See Also:
    Serialized Form
    • Constructor Detail

      • TerminalAuthenticationInfo

        public TerminalAuthenticationInfo()
        Constructs a terminal authentication info using id_TA identifier SecurityInfo.ID_TA and version 1.
      • TerminalAuthenticationInfo

        public TerminalAuthenticationInfo​(short fileId,
                                          byte shortFileId)
        Constructs a new Terminal Authentication info with the required object identifier and version number 1, and file identifier and short file identifier (possibly -1).
        Parameters:
        fileId - a file identifier reference to the efCVCA file
        shortFileId - short file id for the above file, -1 if none
    • Method Detail

      • getVersion

        public int getVersion()
        Gets the version. This will be 1 or 2.
        Returns:
        the version
      • getDERObject

        @Deprecated
        public ASN1Primitive getDERObject()
        Deprecated.
        this method will be removed from visible interface (because of dependency on BC API)
        Returns a DER object with this SecurityInfo data (DER sequence).
        Specified by:
        getDERObject in class SecurityInfo
        Returns:
        a DER object with this SecurityInfo data
      • getObjectIdentifier

        public String getObjectIdentifier()
        Gets the object identifier of this Terminal Authentication info.
        Specified by:
        getObjectIdentifier in class SecurityInfo
        Returns:
        an object identifier
      • getProtocolOIDString

        public String getProtocolOIDString()
        Gets the protocol object identifier as a human readable string.
        Specified by:
        getProtocolOIDString in class SecurityInfo
        Returns:
        a string
      • getFileId

        public int getFileId()
        Returns the efCVCA file identifier stored in this file, -1 if none.
        Returns:
        the efCVCA file identifier stored in this file
      • getShortFileId

        public byte getShortFileId()
        Returns the efCVCA short file identifier stored in this file, -1 if none or not present.
        Returns:
        the efCVCA short file identifier stored in this file
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object