public class OAuthSecurityContext extends Object implements javax.ws.rs.core.SecurityContext
| Constructor and Description |
|---|
OAuthSecurityContext(OAuthConsumer consumer,
boolean isSecure) |
OAuthSecurityContext(OAuthToken token,
boolean isSecure) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationScheme() |
Principal |
getUserPrincipal() |
boolean |
isSecure() |
boolean |
isUserInRole(String string) |
public OAuthSecurityContext(OAuthConsumer consumer, boolean isSecure)
public OAuthSecurityContext(OAuthToken token, boolean isSecure)
public Principal getUserPrincipal()
getUserPrincipal in interface javax.ws.rs.core.SecurityContextpublic boolean isUserInRole(String string)
isUserInRole in interface javax.ws.rs.core.SecurityContextpublic boolean isSecure()
isSecure in interface javax.ws.rs.core.SecurityContextpublic String getAuthenticationScheme()
getAuthenticationScheme in interface javax.ws.rs.core.SecurityContextCopyright © 2016 Oracle Corporation. All rights reserved.