Class CertificateException


  • public class CertificateException
    extends CardRuntimeException
    CertificateException represents a certificate-related exception.

    The API classes throw Java Card runtime environment-owned instances of CertificateException.

    Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables or instance variables or array components.

    Since:
    3.1
    • Field Detail

      • INVALID_ENCODING

        public static final short INVALID_ENCODING
        Certificate encoding exception
        See Also:
        Constant Field Values
      • INVALID_PARAM

        public static final short INVALID_PARAM
        One or more input parameters is invalid
        See Also:
        Constant Field Values
      • MISSING_DATA

        public static final short MISSING_DATA
        Data missing to complete the operation
        See Also:
        Constant Field Values
      • INVALID_SIGNATURE

        public static final short INVALID_SIGNATURE
        Certificate signature verification failed
        See Also:
        Constant Field Values
      • PARSER_HANDLER_EXCEPTION

        public static final short PARSER_HANDLER_EXCEPTION
        A certificate parser handler has thrown an exception
        See Also:
        Constant Field Values
      • PARSER_HANDLER_INVALID_KEY

        public static final short PARSER_HANDLER_INVALID_KEY
        A certificate parser handler has passed an invalid key.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CertificateException

        public CertificateException​(short reason)
        Constructs a CertificateException with the specified reason. To conserve on resources use throwIt() to use the Java Card runtime environment-owned instance of this class.
        Parameters:
        reason - the reason for the exception
    • Method Detail

      • throwIt

        public static void throwIt​(short reason)
                            throws CertificateException
        Throws the Java Card runtime environment owned instance of CertificateException with the specified reason. Java Card runtime environment owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these objects cannot be stored in class variables or instance variables or array components.
        Parameters:
        reason - the reason for the exception.
        Throws:
        CertificateException - always.