|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.security.authentication.AbstractAuthenticationService
org.alfresco.repo.security.authentication.AuthenticationServiceImpl
org.alfresco.repo.security.authentication.MutableAuthenticationServiceImpl
public class MutableAuthenticationServiceImpl
The default implementation of MutableAuthenticationService
.
Constructor Summary | |
---|---|
MutableAuthenticationServiceImpl()
|
Method Summary | |
---|---|
boolean |
authenticationExists(java.lang.String userName)
Check if the given authentication exists. |
void |
createAuthentication(java.lang.String userName,
char[] password)
Create an authentication for the given user. |
void |
deleteAuthentication(java.lang.String userName)
Delete an authentication entry |
boolean |
getAuthenticationEnabled(java.lang.String userName)
Is an authentication enabled or disabled? |
boolean |
isAuthenticationCreationAllowed()
Determines whether authentication creation is allowed. |
boolean |
isAuthenticationMutable(java.lang.String userName)
Determines whether this user's authentication may be mutated via the other methods. |
void |
setAuthentication(java.lang.String userName,
char[] newPassword)
Set the login information for a user (typically called by an admin user) |
void |
setAuthenticationDao(MutableAuthenticationDao authenticationDao)
Sets the authentication dao. |
void |
setAuthenticationEnabled(java.lang.String userName,
boolean enabled)
Enable or disable an authentication entry |
void |
updateAuthentication(java.lang.String userName,
char[] oldPassword,
char[] newPassword)
Update the login information for the user (typically called by the user) |
Methods inherited from class org.alfresco.repo.security.authentication.AbstractAuthenticationService |
---|
getAllowedUsers, getMaxUsers, preAuthenticationCheck, setSysAdminParams |
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, clearCurrentSecurityContext, getCurrentTicket, getCurrentUserName, getDefaultAdministratorUserNames, getDefaultGuestUserNames, getDomains, getDomainsThatAllowUserCreation, getDomainsThatAllowUserDeletion, getDomiansThatAllowUserPasswordChanges, getNewTicket, guestUserAuthenticationAllowed, invalidateTicket, invalidateUserSession, isCurrentUserTheSystemUser, validate |
Constructor Detail |
---|
public MutableAuthenticationServiceImpl()
Method Detail |
---|
public void setAuthenticationDao(MutableAuthenticationDao authenticationDao)
authenticationDao
- the authentication daopublic void createAuthentication(java.lang.String userName, char[] password) throws org.alfresco.repo.security.authentication.AuthenticationException
MutableAuthenticationService
createAuthentication
in interface MutableAuthenticationService
org.alfresco.repo.security.authentication.AuthenticationException
public void updateAuthentication(java.lang.String userName, char[] oldPassword, char[] newPassword) throws org.alfresco.repo.security.authentication.AuthenticationException
MutableAuthenticationService
updateAuthentication
in interface MutableAuthenticationService
org.alfresco.repo.security.authentication.AuthenticationException
public void setAuthentication(java.lang.String userName, char[] newPassword) throws org.alfresco.repo.security.authentication.AuthenticationException
MutableAuthenticationService
setAuthentication
in interface MutableAuthenticationService
org.alfresco.repo.security.authentication.AuthenticationException
public void deleteAuthentication(java.lang.String userName) throws org.alfresco.repo.security.authentication.AuthenticationException
MutableAuthenticationService
deleteAuthentication
in interface MutableAuthenticationService
org.alfresco.repo.security.authentication.AuthenticationException
public boolean getAuthenticationEnabled(java.lang.String userName) throws org.alfresco.repo.security.authentication.AuthenticationException
AuthenticationServiceImpl
getAuthenticationEnabled
in interface AuthenticationService
getAuthenticationEnabled
in class AuthenticationServiceImpl
org.alfresco.repo.security.authentication.AuthenticationException
public void setAuthenticationEnabled(java.lang.String userName, boolean enabled) throws org.alfresco.repo.security.authentication.AuthenticationException
MutableAuthenticationService
setAuthenticationEnabled
in interface MutableAuthenticationService
org.alfresco.repo.security.authentication.AuthenticationException
public boolean authenticationExists(java.lang.String userName)
AuthenticationServiceImpl
authenticationExists
in interface AuthenticationService
authenticationExists
in class AuthenticationServiceImpl
userName
- the username
public boolean isAuthenticationMutable(java.lang.String userName)
MutableAuthenticationService
isAuthenticationMutable
in interface MutableAuthenticationService
userName
- the user ID
true
if this user's authentication may be mutated via the other methods.public boolean isAuthenticationCreationAllowed()
MutableAuthenticationService
isAuthenticationCreationAllowed
in interface MutableAuthenticationService
true
if authentication creation is allowed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |