7.3.7 TokenValidation
Class 0 and Class 2 tokens shall primarily be validated against the TID encoded in the token, except for key change token set.
除密钥更改令牌集外,类别0和类别2令牌应主要针对令牌中编码的TID进行验证。
Key change tokens are validated by the MeterApplicationProcess once the payment meter has read all tokens and combined them into the new DecoderKey. See 8.2 for acceptance and rejection requirements of the key change tokens.
一旦支付计量器读取了所有令牌并将它们组合到新的DecoderKey中,MeterApplicationProcess就会验证密钥更改令牌。密钥变更令牌的接受和拒绝要求见8.2。
If key expiry is implemented in the payment meter, then the KEN stored in the payment meter shall also be used to validate tokens of Class 0 and Class 2 (see 6.5.2.6.), except for key change tokens.
如果在支付表中实现密钥过期,则存储在支付表中的KEN也应用于验证类别0和类别2的令牌(见6.5.2.6.),但密钥更改令牌除外。
A status of Valid shall be indicated if none of the following conditions are true:
有下列情形之一的,应当表明有效状态:
• If a TID is received that has a value smaller than the smallest value of TID stored in the memory store (in other words, that was issued by a POS on a date before the earliest TID stored in the memory store), then such token containing this TID shall be rejected and indicate such condition as an OldError status (see 7.1 .4);
- 如果收到一个TID的值小于内存中TID的最小值(换句话说,是POS发出的,日期比内存中最早的TID早),则拒绝包含这个TID的token,并将此状态标记为OldError状态(见7.1.4);
• If a TID is received that is already stored in the memory store (see 7.3.8), the token shall be rejected and indicate such condition as a UsedError status (see 7.1 .4);
- 如果收到的TID已经存储在内存存储器中(见7.3.8),则拒绝令牌,并表示UsedError状态(见7.1 .4);
• If key expiry is implemented in the payment meter and a TID is received that is greater than the KEN in the Decoder, the token shall be rejected and indicate such condition as a KeyExpiredError status (see 7.1 .4);
- 如果在支付仪表中实现密钥过期,并且收到一个TID大于解码器中的KEN,则该令牌将被拒绝,并表明这种情况为KeyExpiredError状态(见7.1 .4);
• If a Class 0 token is presented to the Decoder with a DDTK value in the DKR, the token shall be rejected (see 6.5.2.3.3) and indicate such condition as a DDTKError status (see 7.1 .4).
- 如果在DKR中向解码器提供带有DDTK值的0类令牌,则该令牌应被拒绝(参见6.5.2.3.3),并将这种情况指示为DDTKError状态(参见7.1.4)。
See also 8.2 and 8.3 for acceptance, rejection and indication requirements in the MeterApplicationProcess.
另见8.2和8.3关于仪表应用过程中的验收、拒收和指示要求。
A payment meter loaded with a DDTK value shall accept all the relevant "non-meter-specific management tokens" (Class 1 tokens) as well as key change tokens encrypted under a DDTK.
加载了DDTK值的支付计量表应接受所有相关的“非计量专用管理令牌”(第1类令牌)以及在DDTK下加密的密钥更改令牌。