public class AuthenticationResult extends Object
AuthenticationProvider
.
Note that when implementing a custom AuthenticationProvider
, it is
not required to set groups or tenants for an AuthenticationResult, as they
will be resolved later via the IdentityService
(e.g.
ProcessEngineAuthenticationFilter.setAuthenticatedUser(org.camunda.bpm.engine.ProcessEngine, java.lang.String, java.util.List<java.lang.String>, java.util.List<java.lang.String>)
).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 © 2022. All rights reserved.