public class AuthenticationResult extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
authenticatedUser |
protected List<String> |
groups |
protected boolean |
isAuthenticated |
protected List<String> |
tenants |
Constructor and Description |
---|
AuthenticationResult(String authenticatedUser,
boolean isAuthenticated) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthenticatedUser() |
List<String> |
getGroups() |
List<String> |
getTenants() |
boolean |
isAuthenticated() |
void |
setAuthenticated(boolean isAuthenticated) |
void |
setAuthenticatedUser(String authenticatedUser) |
void |
setGroups(List<String> groups) |
void |
setTenants(List<String> tenants) |
static AuthenticationResult |
successful(String userId) |
static AuthenticationResult |
unsuccessful() |
static AuthenticationResult |
unsuccessful(String userId) |
protected boolean isAuthenticated
protected String authenticatedUser
public AuthenticationResult(String authenticatedUser, boolean isAuthenticated)
public String getAuthenticatedUser()
public void setAuthenticatedUser(String authenticatedUser)
public boolean isAuthenticated()
public void setAuthenticated(boolean isAuthenticated)
public static AuthenticationResult successful(String userId)
public static AuthenticationResult unsuccessful()
public static AuthenticationResult unsuccessful(String userId)
Copyright © 2021. All rights reserved.