mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
64 lines
2.0 KiB
Java
64 lines
2.0 KiB
Java
package org.alfresco.repo.security.authentication;
|
|
|
|
import java.util.Set;
|
|
|
|
import net.sf.acegisecurity.Authentication;
|
|
|
|
public interface AuthenticationComponent extends AuthenticationContext
|
|
{
|
|
public enum UserNameValidationMode
|
|
{
|
|
NONE, CHECK, CHECK_AND_FIX;
|
|
}
|
|
|
|
/**
|
|
* Authenticate
|
|
*
|
|
* @throws AuthenticationException
|
|
*/
|
|
public void authenticate(String userName, char[] password) throws AuthenticationException;
|
|
|
|
/**
|
|
* Explicitly set the current user to be authenticated.
|
|
*/
|
|
|
|
public Authentication setCurrentUser(String userName);
|
|
|
|
/**
|
|
* Explicitly set the current user to be authenticated.
|
|
* Specify if the userName is to be checked and fixed
|
|
*/
|
|
|
|
public Authentication setCurrentUser(String userName, UserNameValidationMode validationMode);
|
|
|
|
|
|
/**
|
|
* Set the guest user as the current user.
|
|
*/
|
|
public Authentication setGuestUserAsCurrentUser();
|
|
|
|
|
|
/**
|
|
* True if Guest user authentication is allowed, false otherwise
|
|
*/
|
|
public boolean guestUserAuthenticationAllowed();
|
|
|
|
/**
|
|
* Gets a set of user names who for this particular authentication system should be considered administrators by
|
|
* default. If the security framework is case sensitive these values should be case sensitive user names. If the
|
|
* security framework is not case sensitive these values should be the lower-case user names.
|
|
*
|
|
* @return a set of user names
|
|
*/
|
|
public Set<String> getDefaultAdministratorUserNames();
|
|
|
|
/**
|
|
* Gets a set of user names who for this particular authentication system should be considered guests by
|
|
* default. If the security framework is case sensitive these values should be case sensitive user names. If the
|
|
* security framework is not case sensitive these values should be the lower-case user names.
|
|
*
|
|
* @return a set of user names
|
|
*/
|
|
public Set<String> getDefaultGuestUserNames();
|
|
}
|