public class AuthenticationSecurityContext extends Object implements SecurityContext
AuthenticationSecurityContext is a simple implementation of the
SecurityContext interface.BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH| 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 SecurityContextpublic Principal getUserPrincipal()
getUserPrincipal in interface SecurityContextpublic boolean isSecure()
isSecure in interface SecurityContextpublic boolean isUserInRole(String role)
isUserInRole in interface SecurityContextCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.