Class JaasNameCallbackHandler
java.lang.Object
org.springframework.security.authentication.jaas.JaasNameCallbackHandler
- All Implemented Interfaces:
JaasAuthenticationCallbackHandler
The most basic Callbacks to be handled when using a LoginContext from JAAS, are the
NameCallback and PasswordCallback. Spring Security provides the JaasNameCallbackHandler
specifically tailored to handling the NameCallback.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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()).
-
Constructor Details
-
JaasNameCallbackHandler
public JaasNameCallbackHandler()
-
-
Method Details
-
handle
If the callback passed to the 'handle' method is an instance of NameCallback, the JaasNameCallbackHandler will call, callback.setName(authentication.getPrincipal().toString()).- Specified by:
handle
in interfaceJaasAuthenticationCallbackHandler
- Parameters:
callback
-authentication
-
-