public class

RemoteAuthenticationManagerImpl

extends Object
implements InitializingBean RemoteAuthenticationManager
java.lang.Object
   ↳ org.springframework.security.authentication.rcp.RemoteAuthenticationManagerImpl

Class Overview

Server-side processor of a remote authentication request.

This bean requires no security interceptor to protect it. Instead, the bean uses the configured AuthenticationManager to resolve an authentication request.

Summary

Public Constructors
RemoteAuthenticationManagerImpl()
Public Methods
void afterPropertiesSet()
Collection<? extends GrantedAuthority> attemptAuthentication(String username, String password)
Attempts to authenticate the remote client using the presented username and password.
void setAuthenticationManager(AuthenticationManager authenticationManager)
Protected Methods
AuthenticationManager getAuthenticationManager()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.factory.InitializingBean
From interface org.springframework.security.authentication.rcp.RemoteAuthenticationManager

Public Constructors

public RemoteAuthenticationManagerImpl ()

Public Methods

public void afterPropertiesSet ()

Throws
Exception

public Collection<? extends GrantedAuthority> attemptAuthentication (String username, String password)

Attempts to authenticate the remote client using the presented username and password. If authentication is successful, a collection of GrantedAuthority objects will be returned.

In order to maximise remoting protocol compatibility, a design decision was taken to operate with minimal arguments and return only the minimal amount of information required for remote clients to enable/disable relevant user interface commands etc. There is nothing preventing users from implementing their own equivalent package that works with more complex object types.

Parameters
username the username the remote client wishes to authenticate with.
password the password the remote client wishes to authenticate with.
Returns
  • all of the granted authorities the specified username and password have access to.

public void setAuthenticationManager (AuthenticationManager authenticationManager)

Protected Methods

protected AuthenticationManager getAuthenticationManager ()