Class CertificateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javacard.framework.CardRuntimeException
javacardx.security.cert.CertificateException
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final shortCertificate encoding exceptionstatic final shortOne or more input parameters is invalidstatic final shortCertificate signature verification failedstatic final shortData missing to complete the operationstatic final shortA certificate parser handler has thrown an exceptionstatic final shortA certificate parser handler has passed an invalid key. -
Constructor Summary
ConstructorsConstructorDescriptionCertificateException(short reason) Constructs aCertificateExceptionwith the specified reason. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidthrowIt(short reason) Throws the Java Card runtime environment owned instance of CertificateException with the specified reason.Methods inherited from class CardRuntimeException
getReason, setReason
-
Field Details
-
INVALID_ENCODING
public static final short INVALID_ENCODINGCertificate encoding exception- See Also:
-
INVALID_PARAM
public static final short INVALID_PARAMOne or more input parameters is invalid- See Also:
-
MISSING_DATA
public static final short MISSING_DATAData missing to complete the operation- See Also:
-
INVALID_SIGNATURE
public static final short INVALID_SIGNATURECertificate signature verification failed- See Also:
-
PARSER_HANDLER_EXCEPTION
public static final short PARSER_HANDLER_EXCEPTIONA certificate parser handler has thrown an exception- See Also:
-
PARSER_HANDLER_INVALID_KEY
public static final short PARSER_HANDLER_INVALID_KEYA certificate parser handler has passed an invalid key.- See Also:
-
-
Constructor Details
-
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 Details
-
throwIt
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.
-