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:
java.io.Serializable
public final class OpenSslCertificateException extends java.security.cert.CertificateException
A specialCertificateException
which allows to specify which error code is included in the SSL Record. This only work whenSslProvider.OPENSSL
orSslProvider.OPENSSL_REFCNT
is used.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenSslCertificateException(int errorCode)
Construct a new exception with the error code.OpenSslCertificateException(java.lang.String msg, int errorCode)
Construct a new exception with the msg and error code .OpenSslCertificateException(java.lang.String message, java.lang.Throwable cause, int errorCode)
Construct a new exception with the msg, cause and error code .OpenSslCertificateException(java.lang.Throwable cause, int errorCode)
Construct a new exception with the cause and error code .
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
errorCode()
Return the error code to use.
-
-
-
Constructor Detail
-
OpenSslCertificateException
public OpenSslCertificateException(int errorCode)
Construct a new exception with the error code.
-
OpenSslCertificateException
public OpenSslCertificateException(java.lang.String msg, int errorCode)
Construct a new exception with the msg and error code .
-
OpenSslCertificateException
public OpenSslCertificateException(java.lang.String message, java.lang.Throwable cause, int errorCode)
Construct a new exception with the msg, cause and error code .
-
OpenSslCertificateException
public OpenSslCertificateException(java.lang.Throwable cause, int errorCode)
Construct a new exception with the cause and error code .
-
-
Method Detail
-
errorCode
public int errorCode()
Return the error code to use.
-
-