public class JaasNameCallbackHandler extends java.lang.Object implements JaasAuthenticationCallbackHandler
Constructor and Description |
---|
JaasNameCallbackHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handle(javax.security.auth.callback.Callback callback,
Authentication authentication)
If the callback passed to the 'handle' method is an instance of NameCallback, the
JaasNameCallbackHandler will call,
callback.setName(authentication.getPrincipal().toString()).
|
public void handle(javax.security.auth.callback.Callback callback, Authentication authentication) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException
handle
in interface JaasAuthenticationCallbackHandler
callback
- authentication
- java.io.IOException
javax.security.auth.callback.UnsupportedCallbackException