public final class OAuth2SecurityContext
extends java.lang.Object
implements javax.ws.rs.core.SecurityContext
Modifier and Type | Field and Description |
---|---|
private boolean |
isSecure |
private OAuth2TokenEntity |
token |
Constructor and Description |
---|
OAuth2SecurityContext(OAuth2TokenEntity token,
boolean isSecure) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthenticationScheme() |
java.lang.String |
getClientId() |
java.lang.String |
getClientName() |
java.security.Principal |
getUserPrincipal() |
boolean |
isSecure() |
boolean |
isUserInRole(java.lang.String role) |
private final OAuth2TokenEntity token
private final boolean isSecure
public OAuth2SecurityContext(OAuth2TokenEntity token, boolean isSecure)
public boolean isUserInRole(java.lang.String role)
isUserInRole
in interface javax.ws.rs.core.SecurityContext
public boolean isSecure()
isSecure
in interface javax.ws.rs.core.SecurityContext
public java.security.Principal getUserPrincipal()
getUserPrincipal
in interface javax.ws.rs.core.SecurityContext
public java.lang.String getAuthenticationScheme()
getAuthenticationScheme
in interface javax.ws.rs.core.SecurityContext
public java.lang.String getClientId()
public java.lang.String getClientName()