Package uicc.usim.gba_u
Class GBAUException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javacard.framework.CardRuntimeException
uicc.usim.gba_u.GBAUException
- All Implemented Interfaces:
Serializable
public class GBAUException
extends javacard.framework.CardRuntimeException
This class extends the
Throwable class and allows the classes of this package
to throw specific exceptions in case of problems.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortThis reason code (= 1) is used to indicate that encryption/signatue is impossible because GBA Bootstrap is not done.static final shortThis reason code (= 5) is used to indicate that encryption/signatue is impossible because applet is requesting computation with ADF AID which does not support GBA_U.static final shortThis reason code (= 4) is used to indicate that encryption/signatue is impossible because applet is requesting computation with NAF_ID which is not the one allowed.static final shortThis reason code (= 2) is used to indicate that encryption/signatue is impossible because GBA NAF Derivation is not done.static final shortThis reason code (= 3) is used to indicate that encryption/signatue is impossible because applet is defined as allowed to used API as specified in 3GPP TS 31.130. -
Constructor Summary
ConstructorsConstructorDescriptionGBAUException(short reason) Construct aGBAUExceptioninstance with the specified reason. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidthrowIt(short reason) Throws the JCRE instance of theGBAUExceptionclass with the specified reason.Methods inherited from class javacard.framework.CardRuntimeException
getReason, setReasonMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
GBA_U_BOOTSTRAP_NOT_DONE
public static final short GBA_U_BOOTSTRAP_NOT_DONEThis reason code (= 1) is used to indicate that encryption/signatue is impossible because GBA Bootstrap is not done.- See Also:
-
GBA_U_NAF_DERIVATION_NOT_DONE
public static final short GBA_U_NAF_DERIVATION_NOT_DONEThis reason code (= 2) is used to indicate that encryption/signatue is impossible because GBA NAF Derivation is not done.- See Also:
-
GBA_U_UNALLOWED_ACCESS
public static final short GBA_U_UNALLOWED_ACCESSThis reason code (= 3) is used to indicate that encryption/signatue is impossible because applet is defined as allowed to used API as specified in 3GPP TS 31.130.- See Also:
-
GBA_U_INCORRECT_NAF_ID
public static final short GBA_U_INCORRECT_NAF_IDThis reason code (= 4) is used to indicate that encryption/signatue is impossible because applet is requesting computation with NAF_ID which is not the one allowed.- See Also:
-
GBA_U_INCORRECT_ADF_AID
public static final short GBA_U_INCORRECT_ADF_AIDThis reason code (= 5) is used to indicate that encryption/signatue is impossible because applet is requesting computation with ADF AID which does not support GBA_U.- See Also:
-
-
Constructor Details
-
GBAUException
public GBAUException(short reason) Construct aGBAUExceptioninstance with the specified reason. To conserve on resources usethrowIt()method to re-use the JCRE instance of this class.- Parameters:
reason- the reason for the exception
-
-
Method Details
-
throwIt
Throws the JCRE instance of theGBAUExceptionclass with the specified reason.- Parameters:
reason- the reason for the exception- Throws:
GBAUException- always
-