Package io.netty.handler.ssl
Class OpenSslCertificateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.security.GeneralSecurityException
java.security.cert.CertificateException
io.netty.handler.ssl.OpenSslCertificateException
- All Implemented Interfaces:
Serializable
A special
CertificateException
which allows to specify which error code is included in the
SSL Record. This only work when SslProvider.OPENSSL
or SslProvider.OPENSSL_REFCNT
is used.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionOpenSslCertificateException
(int errorCode) Construct a new exception with the error code.OpenSslCertificateException
(String msg, int errorCode) Construct a new exception with the msg and error code .OpenSslCertificateException
(String message, Throwable cause, int errorCode) Construct a new exception with the msg, cause and error code .OpenSslCertificateException
(Throwable cause, int errorCode) Construct a new exception with the cause and error code . -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
checkErrorCode
(int errorCode) int
Return the error code to use.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
errorCode
private final int errorCode
-
-
Constructor Details
-
OpenSslCertificateException
public OpenSslCertificateException(int errorCode) Construct a new exception with the error code. -
OpenSslCertificateException
Construct a new exception with the msg and error code . -
OpenSslCertificateException
Construct a new exception with the msg, cause and error code . -
OpenSslCertificateException
Construct a new exception with the cause and error code .
-
-
Method Details
-
errorCode
public int errorCode()Return the error code to use. -
checkErrorCode
private static int checkErrorCode(int errorCode)
-