|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jaccal.console.Anubis
A convenience class for Anubis scripts. Anubis wraps around most of the useful methods used in Jaccal. Anubis contains a default session that is created from the SessionFactory. If you need to access more than one card at the same time, you will need to create the sessions yourself.
| Field Summary | |
(package private) ErrorTab |
error
|
(package private) SessionFactory |
factory
|
(package private) OutputTab |
output
|
(package private) Session |
session
|
| Constructor Summary | |
Anubis(OutputTab output,
ErrorTab error)
|
|
| Method Summary | |
void |
breakpoint()
Adds a breakpoint to the script |
void |
breakpoint(String label)
Adds a breakpoint to the script |
void |
breakpoint(String label,
String message)
Adds a breakpoint to the script |
void |
close()
Closes the default session |
void |
error(Object toPrint)
Adds an error message to the error tab |
CardResponse |
execute(Command cmd)
Executes the APDU command |
Atr |
open()
Opens the default session |
void |
pause()
Pauses the script until the user clicks on OK |
void |
pause(String message)
Pauses the script until the user clicks on OK |
void |
print(Object toPrint)
Prints to the output tab |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
SessionFactory factory
Session session
OutputTab output
ErrorTab error
| Constructor Detail |
public Anubis(OutputTab output,
ErrorTab error)
| Method Detail |
public Atr open()
public void close()
public CardResponse execute(Command cmd)
throws CardException
cmd - the Command object to be executed
CardExceptionpublic void print(Object toPrint)
toPrint - The text to print. Any objects that is passed in as a parameter will be converted to String
using toString()public void error(Object toPrint)
toPrint - public void pause(String message)
message - This is the message on the dialog boxpublic void pause()
public void breakpoint()
throws BreakPointException
BreakPointException - Throws a breakpoint exception to halt the execution of the script
public void breakpoint(String label)
throws BreakPointException
label - his is the label of the message dialog that is shown at the breakpoint
BreakPointException - Throws a breakpoint exception to halt the execution of the script
public void breakpoint(String label,
String message)
throws BreakPointException
label - This is the label of the message dialog that is shown at the breakpointmessage - This is the message of the message dialog that is shown at the breakpoint
BreakPointException - Throws a breakpoint exception to halt the execution of the script
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||