public class DtlsHandshakeException extends DtlsException
| Constructor and Description |
|---|
DtlsHandshakeException(String message,
AlertMessage.AlertDescription description,
AlertMessage.AlertLevel level,
InetSocketAddress peer)
Constructs a new DTLS exception with the specified detail message, description, level and peer address.
|
DtlsHandshakeException(String message,
AlertMessage.AlertDescription description,
AlertMessage.AlertLevel level,
InetSocketAddress peer,
Throwable cause)
Constructs a new DTLS exception with the specified detail message, description, level, peer address and cause.
|
| Modifier and Type | Method and Description |
|---|---|
AlertMessage.AlertDescription |
getDescription()
Gets the TLS alert description used to characterize this handshake exception.
|
AlertMessage.AlertLevel |
getLevel() |
getPeeraddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DtlsHandshakeException(String message, AlertMessage.AlertDescription description, AlertMessage.AlertLevel level, InetSocketAddress peer)
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).description - the TLS alert description used to characterize the exception.level - the TLS alert level indicating the severity of the exception.peer - the IP address and port of the DTLS connection peer (which is saved for later retrieval by the
DtlsException.getPeer() method).public DtlsHandshakeException(String message, AlertMessage.AlertDescription description, AlertMessage.AlertLevel level, InetSocketAddress peer, Throwable cause)
Note that the detail message associated with cause is not automatically incorporated
in this handshake exception's detail message.
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).description - the TLS alert description used to characterize the exception.level - the TLS alert level indicating the severity of the exception.peer - the IP address and port of the DTLS connection peer (which is saved for later retrieval by the
DtlsException.getPeer() method).cause - the cause for this handshake exception (which is saved for later retrieval by the
Throwable.getCause() method). (A null value is permitted, and indicates
that the cause is nonexistent or unknown.)public final AlertMessage.AlertDescription getDescription()
See TLS 1.2, section 7.2 for details regarding possible values.
public final AlertMessage.AlertLevel getLevel()
Copyright © 2023 Eclipse Foundation. All rights reserved.