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 Details

    • GBA_U_BOOTSTRAP_NOT_DONE

      public static final short GBA_U_BOOTSTRAP_NOT_DONE
      This 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_DONE
      This 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_ACCESS
      This 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_ID
      This 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_AID
      This 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 a GBAUException instance with the specified reason. To conserve on resources use throwIt() method to re-use the JCRE instance of this class.
      Parameters:
      reason - the reason for the exception
  • Method Details

    • throwIt

      public static void throwIt(short reason) throws GBAUException
      Throws the JCRE instance of the GBAUException class with the specified reason.
      Parameters:
      reason - the reason for the exception
      Throws:
      GBAUException - always