public class BasicAuthenticationToken extends ModelObject implements UpdatableAuthenticationToken
AuthenticationToken| Constructor and Description |
|---|
BasicAuthenticationToken() |
BasicAuthenticationToken(String json) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAuthenticated() |
Map<String,Set<Role>> |
getRoles()
Get the role
|
String |
getUserId()
User Id
|
Boolean |
isAuthenticated()
true/false.
|
void |
setAuthenticated(Boolean authenticated) |
void |
setRole(Map<String,Set<Role>> roles) |
void |
setUserId(String userId) |
public BasicAuthenticationToken()
public BasicAuthenticationToken(String json)
public Boolean getAuthenticated()
public void setAuthenticated(Boolean authenticated)
setAuthenticated in interface UpdatableAuthenticationTokenpublic Boolean isAuthenticated()
AuthenticationTokenisAuthenticated in interface AuthenticationTokenpublic Map<String,Set<Role>> getRoles()
AuthenticationTokengetRoles in interface AuthenticationTokenRolepublic String getUserId()
AuthenticationTokengetUserId in interface AuthenticationTokenpublic void setUserId(String userId)
Copyright © 2018. All rights reserved.