- 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>>
ASslContextOptionallows to configure aSslContextin a type-safe way. WhichSslContextOptionis supported depends on the actual implementation ofSslContextand may depend on the nature of the SSL implementation it belongs to.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSslContextOption(String name)Should be used by sub-classes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanexists(String name)voidvalidate(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 theSslContextOptionof 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 theSslContextOptionof 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.
-
-