- java.lang.Object
-
- io.netty5.util.AbstractConstant<SslContextOption<T>>
-
- io.netty5.handler.ssl.SslContextOption<T>
-
- Type Parameters:
T
- the type of the value which is valid for theSslContextOption
- All Implemented Interfaces:
Constant<SslContextOption<T>>
,Comparable<SslContextOption<T>>
- Direct Known Subclasses:
OpenSslContextOption
public class SslContextOption<T> extends AbstractConstant<SslContextOption<T>>
ASslContextOption
allows to configure aSslContext
in a type-safe way. WhichSslContextOption
is supported depends on the actual implementation ofSslContext
and may depend on the nature of the SSL implementation it belongs to.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SslContextOption(String name)
Should be used by sub-classes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
exists(String name)
void
validate(T value)
Validate the value which is set for theSslContextOption
.static <T> SslContextOption<T>
valueOf(Class<?> firstNameComponent, String secondNameComponent)
static <T> SslContextOption<T>
valueOf(String name)
Returns theSslContextOption
of the specified name.
-
-
-
Constructor Detail
-
SslContextOption
protected SslContextOption(String name)
Should be used by sub-classes.- Parameters:
name
- the name of the option
-
-
Method Detail
-
valueOf
public static <T> SslContextOption<T> valueOf(String name)
Returns theSslContextOption
of the specified name.
-
valueOf
public static <T> SslContextOption<T> valueOf(Class<?> firstNameComponent, String secondNameComponent)
-
exists
public static boolean exists(String name)
-
validate
public void validate(T value)
Validate the value which is set for theSslContextOption
. Sub-classes may override this for special checks.
-
-