Package org.wildfly.security.sasl.util
Class SSLQueryCallbackHandler
- java.lang.Object
-
- org.wildfly.security.sasl.util.SSLQueryCallbackHandler
-
- All Implemented Interfaces:
CallbackHandler
public final class SSLQueryCallbackHandler extends Object implements CallbackHandler
A callback handler which delegates to another callback handler, passing the authentication's SSL/TLS information to that callback handler on its first invocation.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description SSLQueryCallbackHandler(CallbackHandler delegate, Supplier<SSLConnection> sslConnectionSupplier)
Construct a new instance.
-
-
-
Constructor Detail
-
SSLQueryCallbackHandler
public SSLQueryCallbackHandler(CallbackHandler delegate, Supplier<SSLConnection> sslConnectionSupplier)
Construct a new instance.- Parameters:
delegate
- the delegate callback handlersslConnectionSupplier
- supplier for the current SSL connection
-
-
Method Detail
-
handle
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
- Specified by:
handle
in interfaceCallbackHandler
- Throws:
IOException
UnsupportedCallbackException
-
-