|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Channel
Instances of this class represent an ISO7816-4 channel opened to a secure element. It can be either a logical channel or the default channel. They can be used to send APDUs to the secure element. Channels are opened by calling the Session.openBasicChannel(byte[]) or Session.openLogicalChannel(byte[]) methods.
| Method Summary | |
|---|---|
void |
close()
Closes this channel to the secure element. |
Session |
getSession()
Get the session that has opened this channel. |
boolean |
isBasicChannel()
Returns a boolean telling if this channel is the basic channel. |
boolean |
isClosed()
Tells if this channel is closed. |
byte[] |
transmit(byte[] command)
Transmit an APDU command (as per ISO7816-4) to the secure element. |
| Method Detail |
|---|
void close()
boolean isBasicChannel()
boolean isClosed()
Session getSession()
byte[] transmit(byte[] command)
throws IOException,
IllegalStateException,
IllegalArgumentException,
SecurityException
command - the APDU command to be transmitted, as a byte array
IOException - if there is a communication problem to the reader or the secure
element
IllegalStateException - if the channel is used after being closed
IllegalArgumentException - if the command byte array is less than 4 bytes long or if the
length of the APDU is not coherent with the length of the
command byte array
SecurityException - if the command is filtered by the security policy
|
Copyright © 2010-2011 Inside Secure |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||