public final class ConfluentSecurityContext extends Object implements javax.ws.rs.core.SecurityContext
| Constructor and Description |
|---|
ConfluentSecurityContext(HttpCredential.Scheme scheme,
Principal principal,
boolean isSecure) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationScheme() |
Principal |
getUserPrincipal() |
boolean |
isSecure() |
boolean |
isUserInRole(String role) |
public static final Principal ANONYMOUS
public ConfluentSecurityContext(HttpCredential.Scheme scheme, Principal principal, boolean isSecure)
public Principal getUserPrincipal()
getUserPrincipal in interface javax.ws.rs.core.SecurityContextpublic boolean isUserInRole(String role)
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.SecurityContext