|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--FileSelector
Class implementing a file selector used to store information about the currently selected
file system object and to process the SELECT APDU
Defined in filesystem.js
Field Summary | |
Object |
globalAuthenticationState
|
Object |
mf
|
Object |
se
|
Constructor Summary | |
FileSelector(<DF> mf)
Create a file selector object |
Method Summary | |
void
|
addAuthenticationState(<boolean> global, <AuthenticationObject> ao)
Add authenticated object to the list of authentication states for the local DF or global MF |
{Number[]}
|
enumerateObjects(<String> type)
Enumerate objects of a defined type |
EF
|
getCurrentEF()
Returns the current EF, if any |
Object
|
getMeta(<String> name)
Return meta data associated with the current DF or MF |
{Object}
|
getObject(<String> type, <Number> id)
Return object of given type identified by id |
Object
|
getSecurityEnvironment()
Return the current security environment |
Object
|
isAuthenticated(<boolean> global, <AuthenticationObject> ao)
Add authenticated object to the list of authentication states for the local DF or global MF |
void
|
processSelectAPDU(<APDU> apdu)
Processes the SELECT APDU |
FSNode
|
selectFID(<ByteString> fid, <boolean> check, <boolean> df)
Select a DF entry by FID |
Object
|
selectMF()
Select the MF |
FSNode
|
selectSFI(<Number> sfi)
Select a DF entry by SFI |
Object
|
toString()
Return a human readable string for this object |
<static> void
|
test()
|
Field Detail |
Object globalAuthenticationState
Object mf
Object se
Constructor Detail |
FileSelector(<DF> mf)
mf
- the master file
Method Detail |
void addAuthenticationState(<boolean> global, <AuthenticationObject> ao)
global
- true if global state else local DF state
ao
- the authentication object for which authentication was successfull
{Number[]} enumerateObjects(<String> type)
type
- the type of the object
EF getCurrentEF()
Object getMeta(<String> name)
name
- the meta data name
{Object} getObject(<String> type, <Number> id)
If bit b8 in the id is 1, then the search will start in the current DF. If the object is not found, the search is continued in the MF. If the bit is not set, then the search will only look into the MF.
type
- the type of the object
id
- the id, bit b8 indicating local DF or global MF search
Object getSecurityEnvironment()
Object isAuthenticated(<boolean> global, <AuthenticationObject> ao)
global
- true if global state else local DF state
ao
- the authentication object for which authentication was successfull
void processSelectAPDU(<APDU> apdu)
Supports in P1
Supports in P2
apdu
- the select APDU
FSNode selectFID(<ByteString> fid, <boolean> check, <boolean> df)
fid
- the file identifier
check
- if file matches expected type EF or DF
df
- true if the check must check for a DF type, else a EF type
Object selectMF()
FSNode selectSFI(<Number> sfi)
sfi
- the short file identifier
Object toString()
<static> void test()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |