Package tv.hd3g.authkit.mod.service
Class AuthenticationServiceImpl
- java.lang.Object
-
- tv.hd3g.authkit.mod.service.AuthenticationServiceImpl
-
- All Implemented Interfaces:
AuthenticationService
@Service @Transactional(readOnly=false) public class AuthenticationServiceImpl extends Object implements AuthenticationService
-
-
Constructor Summary
Constructors Constructor Description AuthenticationServiceImpl()
-
Method Summary
-
-
-
Method Detail
-
checkPassword
public Optional<AuditReportService.RejectLoginCause> checkPassword(Password userEnterPassword, Credential credential)
- Specified by:
checkPasswordin interfaceAuthenticationService
-
userLoginRequest
public String userLoginRequest(javax.servlet.http.HttpServletRequest request, LoginFormDto form) throws UserCantLoginException
- Specified by:
userLoginRequestin interfaceAuthenticationService- Parameters:
request- (used by Audit)- Returns:
- sessionToken String
- Throws:
UserCantLoginException
-
userLoginRequest
public String userLoginRequest(javax.servlet.http.HttpServletRequest request, TOTPLogonCodeFormDto form) throws UserCantLoginException, NotAcceptableSecuredTokenException
- Specified by:
userLoginRequestin interfaceAuthenticationService- Parameters:
request- (used by Audit)- Returns:
- sessionToken String
- Throws:
UserCantLoginExceptionNotAcceptableSecuredTokenException
-
addUser
public String addUser(AddUserDto addUser)
- Specified by:
addUserin interfaceAuthenticationService- Returns:
- userUUID
-
removeUser
public void removeUser(String userUUID)
- Specified by:
removeUserin interfaceAuthenticationService
-
disableUser
public void disableUser(String userUUID)
- Specified by:
disableUserin interfaceAuthenticationService
-
enableUser
public void enableUser(String userUUID)
- Specified by:
enableUserin interfaceAuthenticationService
-
resetUserLogonTrials
public void resetUserLogonTrials(String userUUID)
- Specified by:
resetUserLogonTrialsin interfaceAuthenticationService
-
setUserMustChangePassword
public void setUserMustChangePassword(String userUUID)
- Specified by:
setUserMustChangePasswordin interfaceAuthenticationService
-
changeUserPassword
public void changeUserPassword(String userUUID, Password newPassword) throws ResetWithSamePasswordException, BlockedUserException
- Specified by:
changeUserPasswordin interfaceAuthenticationService- Throws:
ResetWithSamePasswordExceptionBlockedUserException
-
getRightsForUser
public List<String> getRightsForUser(String userUUID, String clientAddr)
- Specified by:
getRightsForUserin interfaceAuthenticationService
-
getContextRightsForUser
public List<String> getContextRightsForUser(String userUUID, String clientAddr, String rightName)
- Specified by:
getContextRightsForUserin interfaceAuthenticationService
-
isUserEnabledAndNonBlocked
public boolean isUserEnabledAndNonBlocked(String userUUID)
- Specified by:
isUserEnabledAndNonBlockedin interfaceAuthenticationService
-
addGroup
public void addGroup(AddGroupOrRoleDto newGroup)
- Specified by:
addGroupin interfaceAuthenticationService
-
renameGroup
public void renameGroup(RenameGroupOrRoleDto renameGroup)
- Specified by:
renameGroupin interfaceAuthenticationService
-
setGroupDescription
public void setGroupDescription(AddGroupOrRoleDto changeGroup)
- Specified by:
setGroupDescriptionin interfaceAuthenticationService
-
addUserInGroup
public void addUserInGroup(String userUUID, String groupName)
- Specified by:
addUserInGroupin interfaceAuthenticationService
-
removeUserInGroup
public void removeUserInGroup(String userUUID, String groupName)
- Specified by:
removeUserInGroupin interfaceAuthenticationService
-
removeGroup
public void removeGroup(String groupName)
- Specified by:
removeGroupin interfaceAuthenticationService
-
listAllGroups
public List<GroupOrRoleDto> listAllGroups()
- Specified by:
listAllGroupsin interfaceAuthenticationService
-
listGroupsForUser
public List<GroupOrRoleDto> listGroupsForUser(String userUUID)
- Specified by:
listGroupsForUserin interfaceAuthenticationService
-
addRole
public void addRole(AddGroupOrRoleDto newRole)
- Specified by:
addRolein interfaceAuthenticationService
-
renameRole
public void renameRole(RenameGroupOrRoleDto renameRole)
- Specified by:
renameRolein interfaceAuthenticationService
-
setRoleDescription
public void setRoleDescription(AddGroupOrRoleDto changeRole)
- Specified by:
setRoleDescriptionin interfaceAuthenticationService
-
setRoleOnlyForClient
public void setRoleOnlyForClient(String roleName, String ipAddr)
- Specified by:
setRoleOnlyForClientin interfaceAuthenticationService
-
addGroupInRole
public void addGroupInRole(String groupName, String roleName)
- Specified by:
addGroupInRolein interfaceAuthenticationService
-
removeGroupInRole
public void removeGroupInRole(String groupName, String roleName)
- Specified by:
removeGroupInRolein interfaceAuthenticationService
-
removeRole
public void removeRole(String roleName)
- Specified by:
removeRolein interfaceAuthenticationService
-
listAllRoles
public List<GroupOrRoleDto> listAllRoles()
- Specified by:
listAllRolesin interfaceAuthenticationService
-
listRolesForGroup
public List<GroupOrRoleDto> listRolesForGroup(String groupName)
- Specified by:
listRolesForGroupin interfaceAuthenticationService
-
addRightInRole
public void addRightInRole(String roleName, String rightName)
- Specified by:
addRightInRolein interfaceAuthenticationService
-
removeRightInRole
public void removeRightInRole(String roleName, String rightName)
- Specified by:
removeRightInRolein interfaceAuthenticationService
-
getAllRights
public Set<String> getAllRights()
- Specified by:
getAllRightsin interfaceAuthenticationService
-
listRightsForRole
public List<String> listRightsForRole(String roleName)
- Specified by:
listRightsForRolein interfaceAuthenticationService
-
addContextInRight
public void addContextInRight(String roleName, String rightName, String context)
- Specified by:
addContextInRightin interfaceAuthenticationService
-
removeContextInRight
public void removeContextInRight(String roleName, String rightName, String context)
- Specified by:
removeContextInRightin interfaceAuthenticationService
-
listContextsForRight
public List<String> listContextsForRight(String roleName, String rightName)
- Specified by:
listContextsForRightin interfaceAuthenticationService
-
listLinkedUsersForGroup
public List<UserDto> listLinkedUsersForGroup(String groupName)
- Specified by:
listLinkedUsersForGroupin interfaceAuthenticationService
-
listLinkedGroupsForRole
public List<GroupOrRoleDto> listLinkedGroupsForRole(String roleName)
- Specified by:
listLinkedGroupsForRolein interfaceAuthenticationService
-
getUserPrivacyList
public List<UserPrivacyDto> getUserPrivacyList(Collection<String> userUUIDList)
- Specified by:
getUserPrivacyListin interfaceAuthenticationService
-
setUserPrivacy
public void setUserPrivacy(String userUUID, UserPrivacyDto userPrivacyDto)
- Specified by:
setUserPrivacyin interfaceAuthenticationService
-
-