public class SimpleSecurityContext extends java.lang.Object implements SecurityContext
| Constructor and Description |
|---|
SimpleSecurityContext(java.security.Principal principal) |
SimpleSecurityContext(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.security.Principal |
getUserPrincipal() |
boolean |
isUserInRole(java.lang.String role) |
public SimpleSecurityContext(java.lang.String name)
public SimpleSecurityContext(java.security.Principal principal)
public java.security.Principal getUserPrincipal()
getUserPrincipal in interface SecurityContextpublic boolean isUserInRole(java.lang.String role)
isUserInRole in interface SecurityContext