Package org.wildfly.security.sasl.util
Class LocalPrincipalSaslClientFactory.ClientPrincipalQueryCallbackHandler
- java.lang.Object
-
- org.wildfly.security.sasl.util.LocalPrincipalSaslClientFactory.ClientPrincipalQueryCallbackHandler
-
- All Implemented Interfaces:
CallbackHandler
- Enclosing class:
- LocalPrincipalSaslClientFactory
static final class LocalPrincipalSaslClientFactory.ClientPrincipalQueryCallbackHandler extends Object implements CallbackHandler
-
-
Field Summary
Fields Modifier and Type Field Description private CallbackHandler
delegate
private AtomicReference<Principal>
principalRef
-
Constructor Summary
Constructors Constructor Description ClientPrincipalQueryCallbackHandler(CallbackHandler delegate)
-
-
-
Field Detail
-
delegate
private final CallbackHandler delegate
-
principalRef
private final AtomicReference<Principal> principalRef
-
-
Constructor Detail
-
ClientPrincipalQueryCallbackHandler
ClientPrincipalQueryCallbackHandler(CallbackHandler delegate)
-
-
Method Detail
-
handle
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
- Specified by:
handle
in interfaceCallbackHandler
- Throws:
IOException
UnsupportedCallbackException
-
getPrincipal
public Principal getPrincipal()
-
-