public final class Response extends ByteParsable
Modifier and Type | Field and Description |
---|---|
static byte |
SW1_COMMAND_NOT_ALLOWED |
static byte |
SW1_INVALID_LENGTH |
static byte |
SW1_SUCCESS |
static byte |
SW1_WRONG_LENGTH |
Constructor and Description |
---|
Response() |
Modifier and Type | Method and Description |
---|---|
byte |
getSw1() |
byte |
getSw2() |
byte[] |
getValue() |
int |
parse(byte[] bytes)
Parses a byte array.
|
static Response |
parseResponse(byte[] bytes) |
clear, equals, getByteCount, getBytes, hashCode, setBytes, toString
public static final byte SW1_COMMAND_NOT_ALLOWED
public static final byte SW1_WRONG_LENGTH
public static final byte SW1_INVALID_LENGTH
public static final byte SW1_SUCCESS
public static Response parseResponse(byte[] bytes)
public int parse(byte[] bytes)
ByteParsable
parse
in class ByteParsable
bytes
- The bytes to parse.public byte[] getValue()
public byte getSw1()
public byte getSw2()