|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cardcontact.opencard.service.isocard.IsoCardSelector
public class IsoCardSelector
Class to support the selection of card objects and the maintenance of the current selection status
Constructor Summary | |
---|---|
IsoCardSelector(CardFilePath root)
CTOR for IsoCardState object |
Method Summary | |
---|---|
protected ResponseAPDU |
doSelect(CardChannel channel,
CardFilePathComponent comp,
boolean isDF,
byte p1,
SecureChannelCredential secureChannelCredential)
Select a single path component |
boolean |
elementaryFileSelected()
Check if the last selected file is an EF |
CardFileInfo |
getFCI()
Returns the CardFileInfo of the last selected file |
CardFilePath |
getPath()
Returns the currently selected path |
byte |
getSelectCommandResponseQualifier()
|
boolean |
isLeInSelectEnabled()
|
int |
selectFile(CardChannel channel,
SecureChannelCredential secureChannelCredential,
CardFilePath path)
|
int |
selectFile(CardChannel channel,
SecureChannelCredential secureChannelCredential,
CardFilePath path,
boolean explicit)
Select directory or file according to path. |
void |
setImplicitlySelectedBySFI(CardFilePath file)
|
void |
setLeInSelectFlag(boolean flag)
|
void |
setSelectCommandResponseQualifier(byte p2)
Override Parameter P2 in SELECT APDU |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IsoCardSelector(CardFilePath root)
Method Detail |
---|
public CardFilePath getPath()
public CardFileInfo getFCI()
public boolean elementaryFileSelected()
public void setSelectCommandResponseQualifier(byte p2)
p2
- the new P2 to usepublic byte getSelectCommandResponseQualifier()
public void setLeInSelectFlag(boolean flag)
public boolean isLeInSelectEnabled()
public void setImplicitlySelectedBySFI(CardFilePath file)
protected ResponseAPDU doSelect(CardChannel channel, CardFilePathComponent comp, boolean isDF, byte p1, SecureChannelCredential secureChannelCredential) throws InvalidCardChannelException, CardTerminalException
channel
- Card channel to use for SELECT commandcomp
- Path component. null is parent file is to be selectedisDF
- true if the path component is known to be a DF
InvalidCardChannelException
CardTerminalException
public int selectFile(CardChannel channel, SecureChannelCredential secureChannelCredential, CardFilePath path, boolean explicit) throws InvalidCardChannelException, CardTerminalException, CardServiceObjectNotAvailableException, CardServiceUnexpectedStatusWordException
channel
- Card channel used to communicate with the cardsecureChannelCredential
- Credential to be used when transforming APDUspath
- Path to file to be selectedexplicit
- Explicitly select object to obtain file control information
InvalidCardChannelException
CardTerminalException
CardServiceObjectNotAvailableException
CardServiceUnexpectedStatusWordException
public int selectFile(CardChannel channel, SecureChannelCredential secureChannelCredential, CardFilePath path) throws InvalidCardChannelException, CardTerminalException, CardServiceObjectNotAvailableException, CardServiceUnexpectedStatusWordException
InvalidCardChannelException
CardTerminalException
CardServiceObjectNotAvailableException
CardServiceUnexpectedStatusWordException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |