public class SamSelection extends org.eclipse.keyple.core.card.selection.AbstractCardSelection<AbstractSamCommandBuilder<? extends AbstractSamResponseParser>>
CalypsoSam object, this class also allows to execute a command
to Unlock the SAM if unlockData are present in the SamSelector.| Constructor and Description |
|---|
SamSelection(SamSelector samSelector)
Create a
SamSelection |
| Modifier and Type | Method and Description |
|---|---|
protected CalypsoSam |
parse(org.eclipse.keyple.core.card.message.CardSelectionResponse cardSelectionResponse)
Create a CalypsoSam object containing the selection data received from the plugin
If an Unlock command has been prepared, its status is checked. |
public SamSelection(SamSelector samSelector)
SamSelectionsamSelector - the SAM selectorprotected CalypsoSam parse(org.eclipse.keyple.core.card.message.CardSelectionResponse cardSelectionResponse)
parse in class org.eclipse.keyple.core.card.selection.AbstractCardSelection<AbstractSamCommandBuilder<? extends AbstractSamResponseParser>>cardSelectionResponse - the card response receivedCalypsoSamCalypsoDesynchronizedExchangesException - if the APDU SAM exchanges are out of syncCalypsoSamCommandException - if the SAM has responded with an error status