Apache CXF API

org.apache.cxf.common.security
Class SimpleSecurityContext

java.lang.Object
  extended by org.apache.cxf.common.security.SimpleSecurityContext
All Implemented Interfaces:
SecurityContext
Direct Known Subclasses:
KerberosAuthenticationFilter.KerberosSecurityContext

public class SimpleSecurityContext
extends Object
implements SecurityContext


Constructor Summary
SimpleSecurityContext(Principal principal)
           
SimpleSecurityContext(String name)
           
 
Method Summary
 Principal getUserPrincipal()
           
 boolean isUserInRole(String role)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSecurityContext

public SimpleSecurityContext(String name)

SimpleSecurityContext

public SimpleSecurityContext(Principal principal)
Method Detail

getUserPrincipal

public Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface SecurityContext

isUserInRole

public boolean isUserInRole(String role)
Specified by:
isUserInRole in interface SecurityContext

Apache CXF API

Apache CXF