public class MutableAuthenticationServiceImpl extends AuthenticationServiceImpl implements MutableAuthenticationService
MutableAuthenticationService
.GUEST_AUTHENTICATION_NOT_SUPPORTED
Constructor and Description |
---|
MutableAuthenticationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticationExists(String userName)
Check if the given authentication exists.
|
void |
createAuthentication(String userName,
char[] password)
Create an authentication for the given user.
|
void |
deleteAuthentication(String userName)
Delete an authentication entry
|
boolean |
getAuthenticationEnabled(String userName)
Is an authentication enabled or disabled?
|
boolean |
isAuthenticationCreationAllowed()
Determines whether authentication creation is allowed.
|
boolean |
isAuthenticationMutable(String userName)
Determines whether this user's authentication may be mutated via the other methods.
|
void |
setAuthentication(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(String userName,
boolean enabled)
Enable or disable an authentication entry
|
void |
updateAuthentication(String userName,
char[] oldPassword,
char[] newPassword)
Update the login information for the user (typically called by the user)
|
authenticate, authenticateAsGuest, clearCurrentSecurityContext, countTickets, getAllowsUserCreation, getAllowsUserDeletion, getAllowsUserPasswordChange, getCurrentTicket, getCurrentUserName, getDefaultAdministratorUserNames, getDefaultGuestUserNames, getDomain, getDomains, getDomainsThatAllowUserCreation, getDomainsThatAllowUserDeletion, getDomiansThatAllowUserPasswordChanges, getNewTicket, getPrevalidationTenantDomain, getTicketComponents, getUsersWithTickets, guestUserAuthenticationAllowed, invalidateTicket, invalidateTickets, invalidateUserSession, isActive, isCurrentUserTheSystemUser, isUserProtected, recordFailedAuthentication, setAllowsUserCreation, setAllowsUserDeletion, setAllowsUserPasswordChange, setAuthenticationComponent, setDomain, setPersonService, setProtectedUsersCache, setProtectionEnabled, setProtectionLimit, setProtectionPeriodSeconds, setTicketComponent, validate
getAllowedUsers, getMaxUsers, preAuthenticationCheck, setSysAdminParams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticate, authenticateAsGuest, clearCurrentSecurityContext, getCurrentTicket, getCurrentUserName, getDefaultAdministratorUserNames, getDefaultGuestUserNames, getDomains, getDomainsThatAllowUserCreation, getDomainsThatAllowUserDeletion, getDomiansThatAllowUserPasswordChanges, getNewTicket, guestUserAuthenticationAllowed, invalidateTicket, invalidateUserSession, isCurrentUserTheSystemUser, validate
public void setAuthenticationDao(MutableAuthenticationDao authenticationDao)
authenticationDao
- the authentication daopublic void createAuthentication(String userName, char[] password) throws org.alfresco.repo.security.authentication.AuthenticationException
MutableAuthenticationService
createAuthentication
in interface MutableAuthenticationService
userName
- Stringpassword
- char[]org.alfresco.repo.security.authentication.AuthenticationException
public void updateAuthentication(String userName, char[] oldPassword, char[] newPassword) throws org.alfresco.repo.security.authentication.AuthenticationException
MutableAuthenticationService
updateAuthentication
in interface MutableAuthenticationService
userName
- StringoldPassword
- char[]newPassword
- char[]org.alfresco.repo.security.authentication.AuthenticationException
public void setAuthentication(String userName, char[] newPassword) throws org.alfresco.repo.security.authentication.AuthenticationException
MutableAuthenticationService
setAuthentication
in interface MutableAuthenticationService
userName
- StringnewPassword
- char[]org.alfresco.repo.security.authentication.AuthenticationException
public void deleteAuthentication(String userName) throws org.alfresco.repo.security.authentication.AuthenticationException
MutableAuthenticationService
deleteAuthentication
in interface MutableAuthenticationService
userName
- Stringorg.alfresco.repo.security.authentication.AuthenticationException
public boolean getAuthenticationEnabled(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(String userName, boolean enabled) throws org.alfresco.repo.security.authentication.AuthenticationException
MutableAuthenticationService
setAuthenticationEnabled
in interface MutableAuthenticationService
userName
- Stringenabled
- booleanorg.alfresco.repo.security.authentication.AuthenticationException
public boolean authenticationExists(String userName)
AuthenticationServiceImpl
authenticationExists
in interface AuthenticationService
authenticationExists
in class AuthenticationServiceImpl
userName
- the usernamepublic boolean isAuthenticationMutable(String userName)
MutableAuthenticationService
isAuthenticationMutable
in interface MutableAuthenticationService
userName
- the user IDtrue
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 allowedCopyright © 2005–2017 Alfresco Software. All rights reserved.