Package org.apache.cxf.common.security
Class SimpleSecurityContext
- java.lang.Object
-
- org.apache.cxf.common.security.SimpleSecurityContext
-
- All Implemented Interfaces:
SecurityContext
public class SimpleSecurityContext extends Object implements SecurityContext
-
-
Constructor Summary
Constructors Constructor Description SimpleSecurityContext(String name)
SimpleSecurityContext(Principal principal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Principal
getUserPrincipal()
boolean
isUserInRole(String role)
-
-
-
Method Detail
-
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipal
in interfaceSecurityContext
-
isUserInRole
public boolean isUserInRole(String role)
- Specified by:
isUserInRole
in interfaceSecurityContext
-
-