public class HttpSecurityImpl extends Object implements HttpSecurity, Serializable
HttpSecurity
implementation.Constructor and Description |
---|
HttpSecurityImpl(String authenticationScheme,
String userId,
Principal principal,
Set<String> roles)
Initiate.
|
HttpSecurityImpl(String authenticationScheme,
String userId,
Set<String> roles)
Initiate with simple
Principal . |
Modifier and Type | Method and Description |
---|---|
String |
getAuthenticationScheme()
Obtains the authentication scheme used.
|
String |
getRemoteUser()
Name of the user.
|
Principal |
getUserPrincipal()
Obtains the
Principal for the user. |
boolean |
isUserInRole(String role)
Indicates if the user supports the role.
|
public HttpSecurityImpl(String authenticationScheme, String userId, Principal principal, Set<String> roles)
authenticationScheme
- Authentication scheme.userId
- User Id.principal
- Principal
.roles
- Roles for the user.public String getAuthenticationScheme()
HttpSecurity
getAuthenticationScheme
in interface HttpSecurity
public String getRemoteUser()
HttpSecurity
getRemoteUser
in interface HttpSecurity
public Principal getUserPrincipal()
HttpSecurity
Principal
for the user.getUserPrincipal
in interface HttpSecurity
Principal
for the user.public boolean isUserInRole(String role)
HttpSecurity
isUserInRole
in interface HttpSecurity
role
- Role to check if user supports.true
if the user supports the role.Copyright © 2005–2016. All rights reserved.