org.alfresco.bm.http
Class UserDataAutheticationDetailsProvider

java.lang.Object
  extended by org.alfresco.bm.http.UserDataAutheticationDetailsProvider
All Implemented Interfaces:
org.alfresco.http.AuthenticationDetailsProvider, org.springframework.beans.factory.InitializingBean

public class UserDataAutheticationDetailsProvider
extends Object
implements org.alfresco.http.AuthenticationDetailsProvider, org.springframework.beans.factory.InitializingBean

AuthenticationDetailsProvider using UserData to store user-details.

Author:
Frederik Heremans

Constructor Summary
UserDataAutheticationDetailsProvider(UserDataService userDataService, String adminUserName, String adminPassword)
           
 
Method Summary
 void afterPropertiesSet()
          Ensures that the bean is properly initialized.
 String getAdminPassword()
           
 String getAdminUsername()
           
 String getPasswordForUser(String username)
           
 String getTicketForUser(String userName)
           
 boolean updateTicketForUser(String username, String ticket)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDataAutheticationDetailsProvider

public UserDataAutheticationDetailsProvider(UserDataService userDataService,
                                            String adminUserName,
                                            String adminPassword)
Parameters:
userDataService - service to use for UserData related operations
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Ensures that the bean is properly initialized.

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

getPasswordForUser

public String getPasswordForUser(String username)
Specified by:
getPasswordForUser in interface org.alfresco.http.AuthenticationDetailsProvider

getTicketForUser

public String getTicketForUser(String userName)
Specified by:
getTicketForUser in interface org.alfresco.http.AuthenticationDetailsProvider

updateTicketForUser

public boolean updateTicketForUser(String username,
                                   String ticket)
                            throws IllegalArgumentException
Specified by:
updateTicketForUser in interface org.alfresco.http.AuthenticationDetailsProvider
Throws:
IllegalArgumentException

getAdminUsername

public String getAdminUsername()
Specified by:
getAdminUsername in interface org.alfresco.http.AuthenticationDetailsProvider

getAdminPassword

public String getAdminPassword()
Specified by:
getAdminPassword in interface org.alfresco.http.AuthenticationDetailsProvider


Copyright © 2012. All Rights Reserved.