public class SpringSecurityContextService extends Object implements SecurityContextService
| Constructor and Description | 
|---|
SpringSecurityContextService()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getPassword()
Get the user password about the currently logged in user 
 | 
String | 
getUsername()
Get the user name about the currently logged in user 
 | 
boolean | 
hasRole(String role)
Check if the currently logged in user has the required role. 
 | 
boolean | 
isAuthenticated()
Check if the currently logged in user is authenticated. 
 | 
public String getUsername()
SecurityContextServicegetUsername in interface SecurityContextServicepublic String getPassword()
SecurityContextServicegetPassword in interface SecurityContextServicepublic boolean hasRole(String role)
SecurityContextServicehasRole in interface SecurityContextServicerole - - required rolepublic boolean isAuthenticated()
SecurityContextServiceisAuthenticated in interface SecurityContextServiceCopyright © 2021. All rights reserved.