Package org.jboss.netty.handler.ssl
Class OpenSsl
- java.lang.Object
-
- org.jboss.netty.handler.ssl.OpenSsl
-
public final class OpenSsl extends Object
Tells ifnetty-tcnative
and its OpenSSL support are available.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
ensureAvailability()
Ensure thatnetty-tcnative
and its OpenSSL support are available.static boolean
isAvailable()
Returnstrue
if and only ifnetty-tcnative
and its OpenSSL support are available.static Throwable
unavailabilityCause()
Returns the cause of unavailability ofnetty-tcnative
and its OpenSSL support.
-
-
-
Method Detail
-
isAvailable
public static boolean isAvailable()
Returnstrue
if and only ifnetty-tcnative
and its OpenSSL support are available.
-
ensureAvailability
public static void ensureAvailability()
Ensure thatnetty-tcnative
and its OpenSSL support are available.- Throws:
UnsatisfiedLinkError
- if unavailable
-
unavailabilityCause
public static Throwable unavailabilityCause()
Returns the cause of unavailability ofnetty-tcnative
and its OpenSSL support.- Returns:
- the cause if unavailable.
null
if available.
-
-