@Component @Scope(value="session") public class SpringSecurityContext extends Object implements SecurityContext, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
SpringSecurityContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
clearContext() |
String |
getAuthorizationMenu() |
UserIdentity |
getUserIdentity() |
boolean |
hasRole(String role) |
boolean |
isAccessible(String securityId) |
boolean |
isAdministrator() |
boolean |
isPasswordValid(String rawPassword) |
boolean |
isRenewCredentialsIdentity() |
boolean |
renewPassword(String oldPassword,
String newPassword) |
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void clearContext()
clearContext in interface SecurityContextpublic String getAuthorizationMenu()
getAuthorizationMenu in interface SecurityContextpublic UserIdentity getUserIdentity()
getUserIdentity in interface SecurityContextpublic boolean hasRole(String role)
hasRole in interface SecurityContextpublic boolean isAccessible(String securityId)
isAccessible in interface SecurityContextpublic boolean isAdministrator()
isAdministrator in interface SecurityContextpublic boolean isPasswordValid(String rawPassword)
isPasswordValid in interface SecurityContextpublic boolean isRenewCredentialsIdentity()
isRenewCredentialsIdentity in interface SecurityContextpublic boolean renewPassword(String oldPassword, String newPassword)
renewPassword in interface SecurityContextCopyright 2012-2013 Veniamin Isaias. All rights reserved.