org.alfresco.repo.security.authentication
Class AbstractAuthenticationService

java.lang.Object
  extended by org.alfresco.repo.security.authentication.AbstractAuthenticationService
All Implemented Interfaces:
AuthenticationService
Direct Known Subclasses:
AbstractChainingAuthenticationService, AuthenticationServiceImpl

public abstract class AbstractAuthenticationService
extends java.lang.Object
implements AuthenticationService

Common code for authentication services


Constructor Summary
AbstractAuthenticationService()
           
 
Method Summary
abstract  int countTickets(boolean nonExpiredOnly)
           
 java.util.List getAllowedUsers()
           
 java.lang.String getCurrentTicket()
          Gets the current ticket as a string.
 int getMaxUsers()
           
abstract  java.util.Set getTicketComponents()
           
abstract  java.util.Set getUsersWithTickets(boolean nonExpiredOnly)
           
abstract  int invalidateTickets(boolean nonExpiredOnly)
           
 void preAuthenticationCheck(java.lang.String userName)
           
 void setSysAdminParams(SysAdminParams sysAdminParams)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.service.cmr.security.AuthenticationService
authenticate, authenticateAsGuest, authenticationExists, clearCurrentSecurityContext, getAuthenticationEnabled, getCurrentTicket, getCurrentUserName, getDefaultAdministratorUserNames, getDefaultGuestUserNames, getDomains, getDomainsThatAllowUserCreation, getDomainsThatAllowUserDeletion, getDomiansThatAllowUserPasswordChanges, getNewTicket, guestUserAuthenticationAllowed, invalidateTicket, invalidateUserSession, isCurrentUserTheSystemUser, validate
 

Constructor Detail

AbstractAuthenticationService

public AbstractAuthenticationService()
Method Detail

setSysAdminParams

public void setSysAdminParams(SysAdminParams sysAdminParams)

preAuthenticationCheck

public void preAuthenticationCheck(java.lang.String userName)
                            throws AuthenticationException
Throws:
AuthenticationException

getAllowedUsers

public java.util.List getAllowedUsers()

getMaxUsers

public int getMaxUsers()

getCurrentTicket

public java.lang.String getCurrentTicket()
Description copied from interface: AuthenticationService
Gets the current ticket as a string. If there isn't an appropriate current ticket, a new ticket will be made the current ticket.

Specified by:
getCurrentTicket in interface AuthenticationService
Returns:
the current ticket as a string

getUsersWithTickets

public abstract java.util.Set getUsersWithTickets(boolean nonExpiredOnly)

invalidateTickets

public abstract int invalidateTickets(boolean nonExpiredOnly)

countTickets

public abstract int countTickets(boolean nonExpiredOnly)

getTicketComponents

public abstract java.util.Set getTicketComponents()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.