Package javacardx.security.cert
Class CertificateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javacard.framework.CardRuntimeException
-
- javacardx.security.cert.CertificateException
-
public class CertificateException extends CardRuntimeException
CertificateExceptionrepresents 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 Summary
Fields Modifier and Type Field Description static shortINVALID_ENCODINGCertificate encoding exceptionstatic shortINVALID_PARAMOne or more input parameters is invalidstatic shortINVALID_SIGNATURECertificate signature verification failedstatic shortMISSING_DATAData missing to complete the operationstatic shortPARSER_HANDLER_EXCEPTIONA certificate parser handler has thrown an exceptionstatic shortPARSER_HANDLER_INVALID_KEYA certificate parser handler has passed an invalid key.
-
Constructor Summary
Constructors Constructor Description CertificateException(short reason)Constructs aCertificateExceptionwith the specified reason.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidthrowIt(short reason)Throws the Java Card runtime environment owned instance of CertificateException with the specified reason.-
Methods inherited from class javacard.framework.CardRuntimeException
getReason, setReason
-
-
-
-
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 aCertificateExceptionwith the specified reason. To conserve on resources usethrowIt()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 CertificateExceptionThrows 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.
-
-