Class JaasPasswordCallbackHandler
- java.lang.Object
-
- org.springframework.security.authentication.jaas.JaasPasswordCallbackHandler
-
- All Implemented Interfaces:
JaasAuthenticationCallbackHandler
public class JaasPasswordCallbackHandler extends java.lang.Object implements JaasAuthenticationCallbackHandler
The most basic Callbacks to be handled when using a LoginContext from JAAS, are the NameCallback and PasswordCallback. Spring Security provides the JaasPasswordCallbackHandler specifically tailored to handling the PasswordCallback.- See Also:
- Callback, PasswordCallback
-
-
Constructor Summary
Constructors Constructor Description JaasPasswordCallbackHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(javax.security.auth.callback.Callback callback, Authentication auth)
If the callback passed to the 'handle' method is an instance of PasswordCallback, the JaasPasswordCallbackHandler will call, callback.setPassword(authentication.getCredentials().toString()).
-
-
-
Method Detail
-
handle
public void handle(javax.security.auth.callback.Callback callback, Authentication auth)
If the callback passed to the 'handle' method is an instance of PasswordCallback, the JaasPasswordCallbackHandler will call, callback.setPassword(authentication.getCredentials().toString()).- Specified by:
handle
in interfaceJaasAuthenticationCallbackHandler
- Parameters:
callback
-auth
-
-
-