public class TerminalAuthenticationInfo extends SecurityInfo
protocol
SHALL identify the Terminal
Authentication Protocol as the specific protocol may change over time.version
SHALL identify the version of the protocol.
Currently, versions 1 and 2 are supported.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.Modifier and Type | Field and Description |
---|---|
static int |
VERSION_1 |
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 and Description |
---|
TerminalAuthenticationInfo()
Constructs a terminal authentication info using id_TA identifier
SecurityInfo.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).
|
Modifier and Type | Method and 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()
Returns the object identifier of this Terminal Authentication info.
|
String |
getProtocolOIDString()
Returns 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()
Returns the version.
|
int |
hashCode() |
String |
toString() |
getInstance, writeObject
getEncoded
public static final int VERSION_1
public TerminalAuthenticationInfo()
SecurityInfo.ID_TA
and version 1.public TerminalAuthenticationInfo(short fileId, byte shortFileId)
fileId
- a file identifier reference to the efCVCA fileshortFileId
- short file id for the above file, -1 if nonepublic int getVersion()
@Deprecated public ASN1Primitive getDERObject()
getDERObject
in class SecurityInfo
public String getObjectIdentifier()
getObjectIdentifier
in class SecurityInfo
public String getProtocolOIDString()
getProtocolOIDString
in class SecurityInfo
public int getFileId()
public byte getShortFileId()
Copyright © 2021. All rights reserved.