public class SERecognizerByATR extends SERecognizer
Modifier and Type | Field and Description |
---|---|
static int |
ATR_MAX_LENGTH
The maximum length of an ATR.
|
static int |
ATR_MIN_LENGTH
The minimum length of an ATR (At least TS and t0 shall be present.
|
Constructor and Description |
---|
SERecognizerByATR(byte[] atr,
byte[] mask)
Initializes a new instance of the SERecognizerByATR class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMatching(Session session)
If the ATR length is correct, masks it and compares it with the expected
one.
|
public static final int ATR_MIN_LENGTH
public static final int ATR_MAX_LENGTH
public SERecognizerByATR(byte[] atr, byte[] mask) throws java.lang.IllegalArgumentException
atr
- A byte array containing the ATR bytes values that are searched
for.mask
- A byte array containing an AND-mask to be applied to the
Secure Element ATR values before to be compared with the searched
value.java.lang.IllegalArgumentException
- when either the ATR or the Mask parameters
have an invalid length, or if they are null.public boolean isMatching(Session session) throws java.lang.IllegalArgumentException
isMatching
in class SERecognizer
session
- The session from which the ATR will be get.java.lang.IllegalArgumentException
- if session is null.SEEK for Android Copyright 2015, Giesecke & Devrient GmbH