|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore.SIMSupplicant
This class handles all SIM communication. It initializes a new thread that creates the APDU connection to the SIM
Constructor Summary | |
SIMSupplicant(Controller controller)
Constructor |
|
SIMSupplicant(Controller controller,
java.lang.String pin)
Constructor |
Method Summary | |
void |
finish()
|
void |
getIMSI()
Calls the request handler with type=2 (GET_IMSI) |
void |
getSRES()
Calls the request handler with type=3 (RUN_GSM_ALGORITHM) |
void |
handleSIMRequest_old(int type)
This method handles the SIM request and creates proper Command APDU |
void |
handleSIMRequest(int type)
This method handles the SIM request and creates proper Command APDU |
void |
handleSIMResponse(int type,
java.lang.String response)
Handles the response from SIM. |
void |
setPin(java.lang.String pin)
|
byte[] |
strToByteArray(java.lang.String pin)
Converting the input String to a byte array |
void |
validatePin(java.lang.String pin)
Calls the request handler with type=1 (PIN) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SIMSupplicant(Controller controller, java.lang.String pin)
controller
- pin
- public SIMSupplicant(Controller controller)
controller
- Method Detail |
public void setPin(java.lang.String pin)
pin
- public void validatePin(java.lang.String pin)
public void getIMSI()
public void getSRES()
public void finish()
public void handleSIMRequest(int type)
type
- public void handleSIMRequest_old(int type)
type
- public void handleSIMResponse(int type, java.lang.String response)
type
- public byte[] strToByteArray(java.lang.String pin)
pin
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |