Interface MutableAuthenticationService
-
- All Superinterfaces:
AuthenticationService
- All Known Implementing Classes:
AbstractChainingAuthenticationService,ChainingAuthenticationServiceImpl,MutableAuthenticationServiceImpl,SubsystemChainingAuthenticationService
@AlfrescoPublicApi public interface MutableAuthenticationService extends AuthenticationService
An extendedAuthenticationServicethat allows mutation of some or all of its user accounts.- Author:
- dward
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateAuthentication(java.lang.String userName, char[] password)Create an authentication for the given user.voiddeleteAuthentication(java.lang.String userName)Delete an authentication entrybooleanisAuthenticationCreationAllowed()Determines whether authentication creation is allowed.booleanisAuthenticationMutable(java.lang.String userName)Determines whether this user's authentication may be mutated via the other methods.voidsetAuthentication(java.lang.String userName, char[] newPassword)Set the login information for a user (typically called by an admin user)voidsetAuthenticationEnabled(java.lang.String userName, boolean enabled)Enable or disable an authentication entryvoidupdateAuthentication(java.lang.String userName, char[] oldPassword, char[] newPassword)Update the login information for the user (typically called by the user)-
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
-
-
-
-
Method Detail
-
isAuthenticationMutable
@Auditable(parameters="userName", recordable=true) boolean isAuthenticationMutable(java.lang.String userName)Determines whether this user's authentication may be mutated via the other methods.- Parameters:
userName- the user ID- Returns:
trueif this user's authentication may be mutated via the other methods.
-
isAuthenticationCreationAllowed
@Auditable boolean isAuthenticationCreationAllowed()
Determines whether authentication creation is allowed.- Returns:
trueif authentication creation is allowed
-
createAuthentication
@Auditable(parameters={"userName","password"}, recordable={true,false}) void createAuthentication(java.lang.String userName, char[] password) throws org.alfresco.repo.security.authentication.AuthenticationExceptionCreate an authentication for the given user.- Parameters:
userName- Stringpassword- char[]- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
updateAuthentication
@Auditable(parameters={"userName","oldPassword","newPassword"}, recordable={true,false,false}) void updateAuthentication(java.lang.String userName, char[] oldPassword, char[] newPassword) throws org.alfresco.repo.security.authentication.AuthenticationExceptionUpdate the login information for the user (typically called by the user)- Parameters:
userName- StringoldPassword- char[]newPassword- char[]- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
setAuthentication
@Auditable(parameters={"userName","newPassword"}, recordable={true,false}) void setAuthentication(java.lang.String userName, char[] newPassword) throws org.alfresco.repo.security.authentication.AuthenticationExceptionSet the login information for a user (typically called by an admin user)- Parameters:
userName- StringnewPassword- char[]- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
deleteAuthentication
@Auditable(parameters="userName") void deleteAuthentication(java.lang.String userName) throws org.alfresco.repo.security.authentication.AuthenticationExceptionDelete an authentication entry- Parameters:
userName- String- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
setAuthenticationEnabled
@Auditable(parameters={"userName","enabled"}) void setAuthenticationEnabled(java.lang.String userName, boolean enabled) throws org.alfresco.repo.security.authentication.AuthenticationExceptionEnable or disable an authentication entry- Parameters:
userName- Stringenabled- boolean- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
-