Class JaasPasswordCallbackHandler
java.lang.Object
org.springframework.security.authentication.jaas.JaasPasswordCallbackHandler
- All Implemented Interfaces:
- JaasAuthenticationCallbackHandler
public class JaasPasswordCallbackHandler
extends 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:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidhandle(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()).
- 
Constructor Details- 
JaasPasswordCallbackHandlerpublic JaasPasswordCallbackHandler()
 
- 
- 
Method Details- 
handleIf the callback passed to the 'handle' method is an instance of PasswordCallback, the JaasPasswordCallbackHandler will call, callback.setPassword(authentication.getCredentials().toString()).- Specified by:
- handlein interface- JaasAuthenticationCallbackHandler
- Parameters:
- callback-
- auth-
 
 
-