@Service public class SpringSecurityService extends Object implements SecurityService
BEAN_AUTHENTICATION_MANAGER, EXPIRED_USER_NAME| Constructor and Description |
|---|
SpringSecurityService() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
authenticate(String username,
String password) |
<T> T |
authenticate(String username,
String password,
boolean useIfValid) |
String |
encodePassword(UserIdentity userIdentity,
String value) |
UserIdentity |
getAdministratorIdentity() |
UserIdentity |
getUserIdentity(String userName) |
boolean |
isPasswordValid(UserIdentity userIdentity,
String rawPassword) |
boolean |
renewPassword(UserIdentity userIdentity,
String oldPassword,
String newPassword) |
public <T> T authenticate(String username, String password)
authenticate in interface SecurityServicepublic <T> T authenticate(String username, String password, boolean useIfValid)
authenticate in interface SecurityServicepublic String encodePassword(UserIdentity userIdentity, String value)
encodePassword in interface SecurityServicepublic UserIdentity getAdministratorIdentity()
getAdministratorIdentity in interface SecurityServicepublic UserIdentity getUserIdentity(String userName)
getUserIdentity in interface SecurityServicepublic boolean isPasswordValid(UserIdentity userIdentity, String rawPassword)
isPasswordValid in interface SecurityServicepublic boolean renewPassword(UserIdentity userIdentity, String oldPassword, String newPassword)
renewPassword in interface SecurityServiceCopyright 2012-2013 Veniamin Isaias. All rights reserved.