public interface AdminSecurityService
Modifier and Type | Field and Description |
---|---|
static String[] |
DEFAULT_PERMISSIONS |
Modifier and Type | Method and Description |
---|---|
AdminUser |
changePassword(PasswordChange passwordChange) |
GenericResponse |
changePassword(String username,
String oldPassword,
String password,
String confirmPassword) |
void |
deleteAdminPermission(AdminPermission permission) |
void |
deleteAdminRole(AdminRole role) |
void |
deleteAdminUser(AdminUser user) |
boolean |
doesOperationExistForCeilingEntity(PermissionType permissionType,
String ceilingEntityFullyQualifiedName) |
String |
getSalt()
Deprecated.
use
getSaltSource() instead |
Object |
getSalt(AdminUser user,
String unencodedPassword)
Gets the salt object for the current admin user.
|
org.springframework.security.authentication.dao.SaltSource |
getSaltSource()
Returns the
SaltSource used with the blAdminPasswordEncoder to encrypt the user password. |
boolean |
isUserQualifiedForOperationOnCeilingEntity(AdminUser adminUser,
PermissionType permissionType,
String ceilingEntityFullyQualifiedName) |
AdminPermission |
readAdminPermissionById(Long id) |
AdminRole |
readAdminRoleById(Long id) |
AdminUser |
readAdminUserById(Long id) |
AdminUser |
readAdminUserByUserName(String userName) |
List<AdminPermission> |
readAllAdminPermissions() |
List<AdminRole> |
readAllAdminRoles() |
List<AdminUser> |
readAllAdminUsers() |
GenericResponse |
resetPasswordUsingToken(String username,
String token,
String password,
String confirmPassword)
Updates the password for the passed in user only if the passed
in token is valid for that user.
|
AdminPermission |
saveAdminPermission(AdminPermission permission) |
AdminRole |
saveAdminRole(AdminRole role) |
AdminUser |
saveAdminUser(AdminUser user) |
GenericResponse |
sendForgotUsernameNotification(String emailAddress)
Looks up the corresponding AdminUser and emails the address on file with
the associated username.
|
GenericResponse |
sendResetPasswordNotification(String userName)
Generates an access token and then emails the user.
|
void |
setSalt(String salt)
Deprecated.
use
setSaltSource(SaltSource) instead |
void |
setSaltSource(org.springframework.security.authentication.dao.SaltSource saltSource)
Sets the
SaltSource used with blAdminPasswordencoder to encrypt the user password. |
static final String[] DEFAULT_PERMISSIONS
void deleteAdminUser(AdminUser user)
void deleteAdminRole(AdminRole role)
List<AdminPermission> readAllAdminPermissions()
AdminPermission readAdminPermissionById(Long id)
AdminPermission saveAdminPermission(AdminPermission permission)
void deleteAdminPermission(AdminPermission permission)
AdminUser changePassword(PasswordChange passwordChange)
boolean isUserQualifiedForOperationOnCeilingEntity(AdminUser adminUser, PermissionType permissionType, String ceilingEntityFullyQualifiedName)
boolean doesOperationExistForCeilingEntity(PermissionType permissionType, String ceilingEntityFullyQualifiedName)
GenericResponse sendForgotUsernameNotification(String emailAddress)
emailAddress
- GenericResponse sendResetPasswordNotification(String userName)
userName
- GenericResponse resetPasswordUsingToken(String username, String token, String password, String confirmPassword)
username
- Name of the usertoken
- Valid reset tokenpassword
- new passwordGenericResponse changePassword(String username, String oldPassword, String password, String confirmPassword)
@Deprecated String getSalt()
getSaltSource()
instead@Deprecated void setSalt(String salt)
setSaltSource(SaltSource)
insteadorg.springframework.security.authentication.dao.SaltSource getSaltSource()
SaltSource
used with the blAdminPasswordEncoder to encrypt the user password. Usually configured in
applicationContext-admin-security.xml. This is not a required property and will return null if not configuredvoid setSaltSource(org.springframework.security.authentication.dao.SaltSource saltSource)
SaltSource
used with blAdminPasswordencoder to encrypt the user password. Usually configured within
applicationContext-admin-security.xmlsaltSource
- Object getSalt(AdminUser user, String unencodedPassword)
getSaltSource()
. If there is
not a SaltSource
configured (getSaltSource()
returns null) then this also returns null.user
- unencodedPassword
- Copyright © 2014. All rights reserved.