public class TLSException
extends java.io.IOException
Modifier and Type | Field and Description |
---|---|
static int |
DESC_CLOSE_NOTIFY |
static int |
LEVEL_FATAL |
static int |
LEVEL_WARNING |
private boolean |
m_Alert |
private byte |
m_AlertDescription |
private byte |
m_AlertLevel |
static java.lang.String |
MSG_EOF |
private static long |
serialVersionUID |
Constructor and Description |
---|
TLSException(java.lang.String s)
Constructor
|
TLSException(java.lang.String s,
int level,
int description)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
Alert()
check if this Exception is an alert
|
byte |
getAlertDescription()
if the Exception is an alert an alertdescription is returned
|
byte |
getAlertLevel()
if the Exception is an alert an alertlevel is returned
|
private static final long serialVersionUID
public static final int LEVEL_WARNING
public static final int LEVEL_FATAL
public static final java.lang.String MSG_EOF
public static final int DESC_CLOSE_NOTIFY
private byte m_AlertLevel
private byte m_AlertDescription
private boolean m_Alert
public TLSException(java.lang.String s)
s
- messagepublic TLSException(java.lang.String s, int level, int description)
s
- messagelevel
- errorlevel (1:warning, 2:fatal)description
- description (see RFC2246 -> 7.2 Alert protocol)public boolean Alert()
public byte getAlertLevel()
public byte getAlertDescription()
Copyright © 2023. All rights reserved.