public class AuthenticationProvider.PinID
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_ID_VALUE
The maximum possible value of a PIN ID.
|
static int |
MIN_ID_VALUE
The minimum possible value of a PIN ID.
|
Constructor and Description |
---|
AuthenticationProvider.PinID(int id,
boolean local)
Creates a PIN ID (reference) to identify a PIN within a Secure
Element.
|
public static final int MIN_ID_VALUE
public static final int MAX_ID_VALUE
public AuthenticationProvider.PinID(int id, boolean local) throws java.lang.IllegalArgumentException
Note: This constructor is based on the P2 reference data for PIN related commands as specified in ISO/IEC 7816-4 in chapter 7.5 (Basic security handling). Local set to true indicates specific reference data and local set to false indicates global reference data according to ISO/IEC 7816-4. The ID indicates the number of the reference data (qualifier) according to ISO/IEC 7816-4.
id
- The ID of the PIN (value from 0x00 to 0x1F).local
- Defines the scope (global or local). True if the PIN is
local. Otherwise false.java.lang.IllegalArgumentException
- if the defined ID is invalid.public final int getID()
Note: This method is based on the P2 reference data for PIN related commands as specified in ISO/IEC 7816-4 in chapter 7.5 (Basic security handling). The ID indicates the number of the reference data (qualifier) according to ISO/IEC 7816-4.
public final boolean isLocal()
Note: This method is based on the P2 reference data for PIN related commands as specified in ISO/IEC 7816-4 in chapter 7.5 (Basic security handling). Local set to true indicates specific reference data and local set to false indicates global reference data according to ISO/IEC 7816-4.
SEEK for Android Copyright 2015, Giesecke & Devrient GmbH