public class

JaasNameCallbackHandler

extends Object
implements JaasAuthenticationCallbackHandler
java.lang.Object
   ↳ org.springframework.security.authentication.jaas.JaasNameCallbackHandler

Class Overview

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.

Summary

Public Constructors
JaasNameCallbackHandler()
Public Methods
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()).
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.security.authentication.jaas.JaasAuthenticationCallbackHandler

Public Constructors

public JaasNameCallbackHandler ()

Public Methods

public 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()).

Parameters
authentication The Authentication object currently being authenticated.