public static final class CardSelector.AtrFilter
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
AtrFilter(java.lang.String atrRegex)
Regular expression based filter
|
Modifier and Type | Method and Description |
---|---|
boolean |
atrMatches(byte[] atr)
Tells if the provided ATR matches the registered regular expression
|
java.lang.String |
getAtrRegex()
Getter for the regular expression provided at construction time
|
void |
setAtrRegex(java.lang.String atrRegex)
Setter for the regular expression provided at construction time
|
java.lang.String |
toString()
Print out the ATR regex
|
public AtrFilter(java.lang.String atrRegex)
atrRegex
- String hex regular expressionpublic void setAtrRegex(java.lang.String atrRegex)
atrRegex
- expression stringpublic java.lang.String getAtrRegex()
public boolean atrMatches(byte[] atr)
If the registered regular expression is empty, the ATR is always matching.
atr
- a buffer containing the ATR to be checkedpublic java.lang.String toString()
toString
in class java.lang.Object