Package | Description |
---|---|
org.eclipse.keyple.core.card.command |
Contains the basic APIs needed to build and parse the cards' APDUs.
|
org.eclipse.keyple.core.card.command.exception |
Contains the basic exceptions related to the execution of card commands.
|
org.eclipse.keyple.core.util.json |
Contains JSON utility classes as serializers/deserializers, mainly used by the Keyple Remote
Plugins solution.
|
Modifier and Type | Field and Description |
---|---|
protected CardCommand |
AbstractApduCommandBuilder.commandRef
The reference field
CardCommand is used to find the type of command concerned when
manipulating a list of abstract builder objects. |
Modifier and Type | Method and Description |
---|---|
CardCommand |
AbstractApduCommandBuilder.getCommandRef()
Gets
CardCommand the current command identification |
protected CardCommand |
AbstractApduResponseParser.getCommandRef()
Gets the associated command reference.
By default, the command reference is retrieved from the associated builder. |
Modifier and Type | Method and Description |
---|---|
protected KeypleCardCommandException |
AbstractApduResponseParser.buildCommandException(java.lang.Class<? extends KeypleCardCommandException> exceptionClass,
java.lang.String message,
CardCommand commandRef,
java.lang.Integer statusCode)
Builds a command exception.
|
protected ApduRequest |
AbstractIso7816CommandBuilder.setApduRequest(byte cla,
CardCommand command,
byte p1,
byte p2,
byte[] dataIn,
java.lang.Byte le)
Helper method to create an ApduRequest from separated elements.
|
Constructor and Description |
---|
AbstractApduCommandBuilder(CardCommand commandRef,
ApduRequest request)
(protected)
The generic abstract constructor to build an APDU request with a command reference and a byte array. |
AbstractIso7816CommandBuilder(CardCommand commandReference,
ApduRequest request)
(protected)
Abstract constructor to build a command with a command reference and an ApduRequest . |
Modifier and Type | Method and Description |
---|---|
CardCommand |
KeypleCardCommandException.getCommand()
Gets the command
|
Constructor and Description |
---|
KeypleCardCommandException(java.lang.String message,
CardCommand command,
java.lang.Integer statusCode)
Constructor allowing to set the error message and the reference to the command
|
KeypleCardCommandUnknownStatusException(java.lang.String message,
CardCommand command,
java.lang.Integer statusCode)
Constructor allowing to set a message, the command and the status code.
|
Modifier and Type | Method and Description |
---|---|
CardCommand |
CardCommandJsonAdapter.deserialize(com.google.gson.JsonElement jsonElement,
java.lang.reflect.Type type,
com.google.gson.JsonDeserializationContext jsonDeserializationContext) |
Modifier and Type | Method and Description |
---|---|
com.google.gson.JsonElement |
CardCommandJsonAdapter.serialize(CardCommand cardCommand,
java.lang.reflect.Type type,
com.google.gson.JsonSerializationContext jsonSerializationContext) |