Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.providers.rcp
Class RemoteAuthenticationManagerImpl  view RemoteAuthenticationManagerImpl download RemoteAuthenticationManagerImpl.java

java.lang.Object
  extended byorg.acegisecurity.providers.rcp.RemoteAuthenticationManagerImpl
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, RemoteAuthenticationManager

public class RemoteAuthenticationManagerImpl
extends java.lang.Object
implements RemoteAuthenticationManager, org.springframework.beans.factory.InitializingBean

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.

Version:
$Id: RemoteAuthenticationManagerImpl.java,v 1.3 2005/11/17 00:55:51 benalex Exp $

Field Summary
private  org.acegisecurity.AuthenticationManager authenticationManager
           
 
Constructor Summary
RemoteAuthenticationManagerImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
 GrantedAuthority[] attemptAuthentication(java.lang.String username, java.lang.String password)
          Attempts to authenticate the remote client using the presented username and password.
 org.acegisecurity.AuthenticationManager getAuthenticationManager()
           
 void setAuthenticationManager(org.acegisecurity.AuthenticationManager authenticationManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authenticationManager

private org.acegisecurity.AuthenticationManager authenticationManager
Constructor Detail

RemoteAuthenticationManagerImpl

public RemoteAuthenticationManagerImpl()
Method Detail

setAuthenticationManager

public void setAuthenticationManager(org.acegisecurity.AuthenticationManager authenticationManager)

getAuthenticationManager

public org.acegisecurity.AuthenticationManager getAuthenticationManager()

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Description copied from interface: org.springframework.beans.factory.InitializingBean
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).

This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

attemptAuthentication

public GrantedAuthority[] attemptAuthentication(java.lang.String username,
                                                java.lang.String password)
                                         throws RemoteAuthenticationException
Description copied from interface: RemoteAuthenticationManager
Attempts to authenticate the remote client using the presented username and password. If authentication is successful, an array 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 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.

Specified by:
attemptAuthentication in interface RemoteAuthenticationManager