public class SimpleSecurityContext extends Object implements SecurityContext
Constructor and Description |
---|
SimpleSecurityContext(Principal principal) |
SimpleSecurityContext(String name) |
Modifier and Type | Method and Description |
---|---|
Principal |
getUserPrincipal() |
boolean |
isUserInRole(String role) |
public SimpleSecurityContext(String name)
public SimpleSecurityContext(Principal principal)
public Principal getUserPrincipal()
getUserPrincipal
in interface SecurityContext
public boolean isUserInRole(String role)
isUserInRole
in interface SecurityContext
Copyright © 2016 JBoss by Red Hat. All rights reserved.