Package uicc.usim.suci
Class SUCIRegistry
java.lang.Object
uicc.usim.suci.SUCIRegistry
The
SUCIRegistry class contains static method(s) to register object(s) in the USIM.
Theses object exposes SUCI related services.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidderegisterSUCICalculator(javacard.framework.AID aid, SUCICalculator calc) Deregister an instance of an object that implementsSUCICalculatorinterface from the indicated USIM application.static voidDeregister an instance of an object that implementsSUCICalculatorinterface from the USIM application.static voidregisterSUCICalculator(javacard.framework.AID aid, SUCICalculator calc) Register an instance of an object that implementsSUCICalculatorinterface to the indicated USIM application.static voidRegister an instance of an object that implementsSUCICalculatorinterface to the USIM application.
-
Method Details
-
registerSUCICalculator
Register an instance of an object that implementsSUCICalculatorinterface to the indicated USIM application. This object will be used by the USIM to retrieve the SUCI to be returned to the terminalNote:
- The object
SUCICalculator, shall be in the same security domain of the the indicated USIM application. - To deregister the object
SUCICalculator, the reference of this object will be needed.
- Parameters:
aid- AID of the USIM requesting USIM SUCI servicescalc- object that implementsSUCICalculator- Throws:
NullPointerException- ifaidorcalcisnulljavacard.framework.SystemException- ifaidis not present or not an USIM applicationSUCIException- with the following reason codes:SUCIException.ALREADY_REGISTEREDif aSUCICalculatoris already registered to the indicated USIMSUCIException.WRONG_INTERFACEifcalcobject doesn't implementSUCICalculatorinterfaceSUCIException.WRONG_OWNERSHIPifcalcobject is from an application not in the same security domain of the indicated USIM application.
- The object
-
registerSUCICalculator
Register an instance of an object that implementsSUCICalculatorinterface to the USIM application. This object will be used by the USIM to retrieve the SUCI to be returned to the terminalNote:
- The object
SUCICalculator, shall be in the same security domain of the the indicated USIM application. - To deregister the object
SUCICalculator, the reference of this object will be needed.
- Parameters:
calc- object that implementsSUCICalculator- Throws:
NullPointerException- ifcalcisnullSUCIException- with the following reason codes:SUCIException.NO_USIMif there is no USIM available.SUCIException.ALREADY_REGISTEREDif anSUCICalculatoris already registered to the indicated USIMSUCIException.WRONG_INTERFACEifcalcobject doesn't implementSUCICalculatorinterfaceSUCIException.WRONG_OWNERSHIPifcalcobject is from an application not in the same security domain of the indicated USIM application.
- The object
-
deregisterSUCICalculator
Deregister an instance of an object that implementsSUCICalculatorinterface from the indicated USIM application.- Parameters:
aid- AID of the USIM using SUCI servicescalc- object that implementsSUCICalculatorthat is registered and should be deregistered- Throws:
NullPointerException- ifaidorcalcisnulljavacard.framework.SystemException- ifaidis not present or not an USIM applicationSUCIException- with the following reason codes:SUCIException.NOT_REGISTEREDif theSUCICalculatoris not registered for the indicated USIM. TheSUCICalculatorregistered object, if any, will stay registered.
-
deregisterSUCICalculator
Deregister an instance of an object that implementsSUCICalculatorinterface from the USIM application.- Parameters:
calc- object that implementsSUCICalculatorthat is registered and should be deregistered- Throws:
NullPointerException- ifcalcisnullSUCIException- with the following reason codes:SUCIException.NO_USIMif there is no USIM available.SUCIException.NOT_REGISTEREDif theSUCICalculatoris not registered to the indicated USIM. TheSUCICalculatorregistered object, if any, will stay registered.
-