org.apache.openejb.rest
Class ThreadLocalSecurityContext
java.lang.Object
org.apache.openejb.rest.AbstractRestThreadLocalProxy<javax.ws.rs.core.SecurityContext>
org.apache.openejb.rest.ThreadLocalSecurityContext
- All Implemented Interfaces:
- Serializable, javax.ws.rs.core.SecurityContext
public class ThreadLocalSecurityContext
- extends AbstractRestThreadLocalProxy<javax.ws.rs.core.SecurityContext>
- implements javax.ws.rs.core.SecurityContext
- See Also:
- Serialized Form
| Fields inherited from interface javax.ws.rs.core.SecurityContext |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadLocalSecurityContext
protected ThreadLocalSecurityContext()
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
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.