Class SslContextOption<T>
java.lang.Object
- Type Parameters:
T- the type of the value which is valid for theSslContextOption
- All Implemented Interfaces:
Constant<SslContextOption<T>>, java.lang.Comparable<SslContextOption<T>>
- Direct Known Subclasses:
OpenSslContextOption
A
SslContextOption allows to configure a SslContext in a type-safe
way. Which SslContextOption is supported depends on the actual implementation
of SslContext and may depend on the nature of the SSL implementation it belongs
to.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ConstantPool<SslContextOption<java.lang.Object>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSslContextOption(int id, java.lang.String name) Creates a newSslContextOptionwith the specified uniquename.protectedSslContextOption(java.lang.String name) Should be used by sub-classes. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanexists(java.lang.String name) voidValidate the value which is set for theSslContextOption.static <T> SslContextOption<T> valueOf(java.lang.Class<?> firstNameComponent, java.lang.String secondNameComponent) static <T> SslContextOption<T> valueOf(java.lang.String name) Returns theSslContextOptionof the specified name.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
pool
-
-
Constructor Details
-
SslContextOption
private SslContextOption(int id, java.lang.String name) Creates a newSslContextOptionwith the specified uniquename. -
SslContextOption
protected SslContextOption(java.lang.String name) Should be used by sub-classes.- Parameters:
name- the name of the option
-
-
Method Details
-
valueOf
Returns theSslContextOptionof the specified name. -
valueOf
public static <T> SslContextOption<T> valueOf(java.lang.Class<?> firstNameComponent, java.lang.String secondNameComponent) -
exists
public static boolean exists(java.lang.String name) -
validate
Validate the value which is set for theSslContextOption. Sub-classes may override this for special checks.
-