|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
javacardx.io.PSKException
@TransactionType(value=NOT_SUPPORTED) public class PSKException
The PSKException
encapsulates an error that occurred while
establishing a TLS secure connection using a PSK cipher suite.
This exception as CertificateException
is a subtype of
IOException
. PSKException
must be thrown in
lieu of CertificateException
when PSK is used to indicate
various failures related to establishing the secure connection.
Direct instances of this exception class are not bound to any context and can be
passed between contexts without any restrictions. Objects created and returned
by the methods of this class are owned by the caller. In particular, a call to the Throwable.getMessage()
returns a String instance bound to the owner context of the caller.
See Runtime Environment Specification for the Java Card Platform, Connected Edition, chapter 7 for details regarding transfer of ownership.
HttpsConnection
,
SecureConnection
,
CertificateException
Field Summary | |
---|---|
static byte |
UNKNOWN_PSK_IDENTITY
This reason code is used to indicate that the server did not recognize the PSK identity. |
Constructor Summary | |
---|---|
PSKException(byte reason)
Create a new exception with a specific error reason. |
|
PSKException(String message,
byte reason)
Create a new exception with a message and specific error reason. |
Method Summary | |
---|---|
byte |
getReason()
Get the reason code. |
Methods inherited from class java.lang.Throwable |
---|
getMessage, printStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte UNKNOWN_PSK_IDENTITY
Constructor Detail |
---|
public PSKException(byte reason)
reason
- the reason for the exception.public PSKException(String message, byte reason)
message
- a descriptive messagereason
- the reason for the exception.Method Detail |
---|
public byte getReason()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |