public class AuthenticationSecurityContext extends Object implements javax.ws.rs.core.SecurityContext
AuthenticationSecurityContext is a simple implementation of the
SecurityContext interface.| Constructor and Description |
|---|
AuthenticationSecurityContext(String username)
Instantiates a new
AuthenticationSecurityContext. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationScheme() |
Principal |
getUserPrincipal() |
boolean |
isSecure() |
boolean |
isUserInRole(String role) |
public AuthenticationSecurityContext(String username)
AuthenticationSecurityContext.username - the usernamepublic String getAuthenticationScheme()
getAuthenticationScheme in interface javax.ws.rs.core.SecurityContextpublic Principal getUserPrincipal()
getUserPrincipal in interface javax.ws.rs.core.SecurityContextpublic boolean isSecure()
isSecure in interface javax.ws.rs.core.SecurityContextpublic boolean isUserInRole(String role)
isUserInRole in interface javax.ws.rs.core.SecurityContextCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.