Apache CXF API

org.apache.cxf.jaxrs.impl.tl
Class ThreadLocalSecurityContext

java.lang.Object
  extended by org.apache.cxf.jaxrs.impl.tl.AbstractThreadLocalProxy<javax.ws.rs.core.SecurityContext>
      extended by org.apache.cxf.jaxrs.impl.tl.ThreadLocalSecurityContext
All Implemented Interfaces:
javax.ws.rs.core.SecurityContext, ThreadLocalProxy<javax.ws.rs.core.SecurityContext>

public class ThreadLocalSecurityContext
extends AbstractThreadLocalProxy<javax.ws.rs.core.SecurityContext>
implements javax.ws.rs.core.SecurityContext


Field Summary
 
Fields inherited from interface javax.ws.rs.core.SecurityContext
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
ThreadLocalSecurityContext()
           
 
Method Summary
 String getAuthenticationScheme()
           
 Principal getUserPrincipal()
           
 boolean isSecure()
           
 boolean isUserInRole(String role)
           
 
Methods inherited from class org.apache.cxf.jaxrs.impl.tl.AbstractThreadLocalProxy
get, remove, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalSecurityContext

public ThreadLocalSecurityContext()
Method Detail

getAuthenticationScheme

public String getAuthenticationScheme()
Specified by:
getAuthenticationScheme in interface javax.ws.rs.core.SecurityContext

getUserPrincipal

public Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface javax.ws.rs.core.SecurityContext

isSecure

public boolean isSecure()
Specified by:
isSecure in interface javax.ws.rs.core.SecurityContext

isUserInRole

public boolean isUserInRole(String role)
Specified by:
isUserInRole in interface javax.ws.rs.core.SecurityContext

Apache CXF API

Apache CXF