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.SecurityContext
public boolean isUserInRole(String string)
isUserInRole
in interface javax.ws.rs.core.SecurityContext
public boolean isSecure()
isSecure
in interface javax.ws.rs.core.SecurityContext
public String getAuthenticationScheme()
getAuthenticationScheme
in interface javax.ws.rs.core.SecurityContext
Copyright © 2013 Oracle Corporation. All rights reserved.