11.12.3.4.131. Function Se05x_API_VerifySessionUserID

11.12.3.4.131.1. Function Documentation

smStatus_t Se05x_API_VerifySessionUserID(pSe05xSession_t session_ctx, const uint8_t *userId, size_t userIdLen)

Se05x_API_VerifySessionUserID

Verifies the session user identifier (UserID) in order to allow setting up a session. If the UserID is correct, the session establishment is successful; otherwise the session cannot be opened (SW_CONDITIONS_NOT_SATISFIED is returned).

Command to Applet

Field

Value

Description

CLA

0x80

INS

INS_MGMT

See SE05x_INS_t

P1

P1_DEFAULT

See SE05x_P1_t

P2

P2_SESSION_USERID

See SE05x_P2_t

Lc

#(Payload)

Payload length.

TLV[TAG_1]

UserID value

Le

R-APDU Body

NA

R-APDU Trailer

SW

Description

SW_NO_ERROR

The command is handled successfully.

Parameters
  • [in] session_ctx: Session Context [0:kSE05x_pSession]

  • [in] userId: userId [1:kSE05x_TAG_1]

  • [in] userIdLen: Length of userId