public class AuthenticationSecurityContext
extends java.lang.Object
implements javax.ws.rs.core.SecurityContext
AuthenticationSecurityContext is a simple implementation of the
SecurityContext interface.| Constructor and Description |
|---|
AuthenticationSecurityContext(java.lang.String username)
Instantiates a new
AuthenticationSecurityContext. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthenticationScheme() |
java.security.Principal |
getUserPrincipal() |
boolean |
isSecure() |
boolean |
isUserInRole(java.lang.String role) |
public AuthenticationSecurityContext(java.lang.String username)
AuthenticationSecurityContext.username - the usernamepublic java.lang.String getAuthenticationScheme()
getAuthenticationScheme in interface javax.ws.rs.core.SecurityContextpublic java.security.Principal getUserPrincipal()
getUserPrincipal in interface javax.ws.rs.core.SecurityContextpublic boolean isSecure()
isSecure in interface javax.ws.rs.core.SecurityContextpublic boolean isUserInRole(java.lang.String role)
isUserInRole in interface javax.ws.rs.core.SecurityContext