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 UpdatableAuthenticationToken
public Boolean isAuthenticated()
AuthenticationToken
isAuthenticated
in interface AuthenticationToken
public Map<String,Set<Role>> getRoles()
AuthenticationToken
getRoles
in interface AuthenticationToken
Role
public String getUserId()
AuthenticationToken
getUserId
in interface AuthenticationToken
public void setUserId(String userId)
Copyright © 2018. All rights reserved.