public class JaasNameCallbackHandler extends Object implements JaasAuthenticationCallbackHandler
Constructor and Description |
---|
JaasNameCallbackHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handle(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(Callback callback, Authentication authentication) throws IOException, UnsupportedCallbackException
handle
in interface JaasAuthenticationCallbackHandler
callback
- authentication
- IOException
UnsupportedCallbackException