au.edu.archer.acegi.myproxy
Class MyProxyAuthenticationProvider

java.lang.Object
  extended by org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider
      extended by au.edu.archer.acegi.myproxy.MyProxyAuthenticationProvider
All Implemented Interfaces:
org.acegisecurity.providers.AuthenticationProvider, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware

public class MyProxyAuthenticationProvider
extends org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider

Authenticate to a MyProxy service using credentials collected by a form authentication filter.

Author:
Nigel Sim

Field Summary
static java.lang.String SESSION_CREDENTIAL
           
 
Fields inherited from class org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider
hideUserNotFoundExceptions, messages
 
Constructor Summary
MyProxyAuthenticationProvider()
           
 
Method Summary
protected  void additionalAuthenticationChecks(org.acegisecurity.userdetails.UserDetails userDetails, org.acegisecurity.providers.UsernamePasswordAuthenticationToken authentication)
           
 java.lang.String getHost()
          Get MyProxy host.
 java.lang.String getMyProxyDN()
           
 java.lang.String getPort()
          Get myproxy port.
protected  org.acegisecurity.userdetails.UserDetails retrieveUser(java.lang.String username, org.acegisecurity.providers.UsernamePasswordAuthenticationToken authentication)
          Get the user details from MyProxy.
 void setHost(java.lang.String host)
          Set MyProxy host.
 void setMyProxyDN(java.lang.String myProxyDN)
           
 void setPort(java.lang.String port)
          Set MyProxy port.
 
Methods inherited from class org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider
afterPropertiesSet, authenticate, createSuccessAuthentication, doAfterPropertiesSet, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SESSION_CREDENTIAL

public static final java.lang.String SESSION_CREDENTIAL
See Also:
Constant Field Values
Constructor Detail

MyProxyAuthenticationProvider

public MyProxyAuthenticationProvider()
Method Detail

additionalAuthenticationChecks

protected void additionalAuthenticationChecks(org.acegisecurity.userdetails.UserDetails userDetails,
                                              org.acegisecurity.providers.UsernamePasswordAuthenticationToken authentication)
                                       throws org.acegisecurity.AuthenticationException
Specified by:
additionalAuthenticationChecks in class org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider
Throws:
org.acegisecurity.AuthenticationException

retrieveUser

protected org.acegisecurity.userdetails.UserDetails retrieveUser(java.lang.String username,
                                                                 org.acegisecurity.providers.UsernamePasswordAuthenticationToken authentication)
                                                          throws org.acegisecurity.AuthenticationException
Get the user details from MyProxy. This is actually a UserDetailsWithCertificate, with their credential set.

Specified by:
retrieveUser in class org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider
Parameters:
usernam - - username
authentication - - password
Returns:
UserDetailsWithCertificate - populated UserDetails with credential
Throws:
org.acegisecurity.AuthenticationException

getPort

public java.lang.String getPort()
Get myproxy port.

Returns:

setPort

public void setPort(java.lang.String port)
Set MyProxy port.

Parameters:
port -

getHost

public java.lang.String getHost()
Get MyProxy host.

Returns:

setHost

public void setHost(java.lang.String host)
Set MyProxy host.

Parameters:
host -

getMyProxyDN

public java.lang.String getMyProxyDN()

setMyProxyDN

public void setMyProxyDN(java.lang.String myProxyDN)


Copyright © 2008. All Rights Reserved.