Package org.jmrtd.lds
Class TerminalAuthenticationInfo
- java.lang.Object
-
- org.jmrtd.lds.AbstractLDSInfo
-
- org.jmrtd.lds.SecurityInfo
-
- org.jmrtd.lds.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
-
-
Field Summary
Fields Modifier and Type Field Description static int
VERSION_1
-
Fields inherited from class org.jmrtd.lds.SecurityInfo
ID_AA, ID_CA_DH_3DES_CBC_CBC, ID_CA_DH_AES_CBC_CMAC_128, ID_CA_DH_AES_CBC_CMAC_192, ID_CA_DH_AES_CBC_CMAC_256, ID_CA_ECDH_3DES_CBC_CBC, ID_CA_ECDH_AES_CBC_CMAC_128, ID_CA_ECDH_AES_CBC_CMAC_192, ID_CA_ECDH_AES_CBC_CMAC_256, ID_EC_PUBLIC_KEY, ID_EC_PUBLIC_KEY_TYPE, ID_PACE, ID_PACE_DH_GM, ID_PACE_DH_GM_3DES_CBC_CBC, ID_PACE_DH_GM_AES_CBC_CMAC_128, ID_PACE_DH_GM_AES_CBC_CMAC_192, ID_PACE_DH_GM_AES_CBC_CMAC_256, ID_PACE_DH_IM, ID_PACE_DH_IM_3DES_CBC_CBC, ID_PACE_DH_IM_AES_CBC_CMAC_128, ID_PACE_DH_IM_AES_CBC_CMAC_192, ID_PACE_DH_IM_AES_CBC_CMAC_256, ID_PACE_ECDH_CAM, ID_PACE_ECDH_CAM_AES_CBC_CMAC_128, ID_PACE_ECDH_CAM_AES_CBC_CMAC_192, ID_PACE_ECDH_CAM_AES_CBC_CMAC_256, ID_PACE_ECDH_GM, ID_PACE_ECDH_GM_3DES_CBC_CBC, ID_PACE_ECDH_GM_AES_CBC_CMAC_128, ID_PACE_ECDH_GM_AES_CBC_CMAC_192, ID_PACE_ECDH_GM_AES_CBC_CMAC_256, ID_PACE_ECDH_IM, ID_PACE_ECDH_IM_3DES_CBC_CBC, ID_PACE_ECDH_IM_AES_CBC_CMAC_128, ID_PACE_ECDH_IM_AES_CBC_CMAC_192, ID_PACE_ECDH_IM_AES_CBC_CMAC_256, ID_PK_DH, ID_PK_ECDH, ID_TA, ID_TA_ECDSA, ID_TA_ECDSA_SHA_1, ID_TA_ECDSA_SHA_224, ID_TA_ECDSA_SHA_256, ID_TA_RSA, ID_TA_RSA_PSS_SHA_1, ID_TA_RSA_PSS_SHA_256, ID_TA_RSA_V1_5_SHA_1, ID_TA_RSA_V1_5_SHA_256
-
-
Constructor Summary
Constructors Constructor Description TerminalAuthenticationInfo()
Constructs a terminal authentication info using id_TA identifierSecurityInfo.ID_TA
and version 1.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).
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object other)
ASN1Primitive
getDERObject()
Deprecated.this method will be removed from visible interface (because of dependency on BC API)int
getFileId()
Returns the efCVCA file identifier stored in this file, -1 if none.String
getObjectIdentifier()
Gets the object identifier of this Terminal Authentication info.String
getProtocolOIDString()
Gets the protocol object identifier as a human readable string.byte
getShortFileId()
Returns the efCVCA short file identifier stored in this file, -1 if none or not present.int
getVersion()
Gets the version.int
hashCode()
String
toString()
-
Methods inherited from class org.jmrtd.lds.AbstractLDSInfo
getEncoded
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from class org.jmrtd.lds.SecurityInfo
getInstance, writeObject
-
-
-
-
Field Detail
-
VERSION_1
public static final int VERSION_1
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TerminalAuthenticationInfo
public TerminalAuthenticationInfo()
Constructs a terminal authentication info using id_TA identifierSecurityInfo.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 fileshortFileId
- 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 classSecurityInfo
- 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 classSecurityInfo
- Returns:
- an object identifier
-
getProtocolOIDString
public String getProtocolOIDString()
Gets the protocol object identifier as a human readable string.- Specified by:
getProtocolOIDString
in classSecurityInfo
- 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
-
-