java.lang.Object
javax.net.ssl.SNIMatcher
org.newsclub.net.unix.ssl.CallbackSNIMatcher
A wrapping
SNIMatcher
that calls a callback with the checked SNIServerName
and
match status (true
or false
).- Author:
- Christian Kohlschütter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Callback that is called uponSNIMatcher.matches(SNIServerName)
. -
Constructor Summary
ConstructorDescriptionCallbackSNIMatcher
(SNIMatcher wrapped, CallbackSNIMatcher.Callback callback) Constructs a newCallbackSNIMatcher
, using the given wrappedSNIMatcher
and callback. -
Method Summary
Methods inherited from class javax.net.ssl.SNIMatcher
getType
-
Constructor Details
-
CallbackSNIMatcher
Constructs a newCallbackSNIMatcher
, using the given wrappedSNIMatcher
and callback.- Parameters:
wrapped
- The wrappedSNIMatcher
.callback
- The callback to be called uponmatches(SNIServerName)
.
-
-
Method Details
-
matches
- Specified by:
matches
in classSNIMatcher
-