Class AuthenticationResult
java.lang.Object
org.camunda.bpm.engine.rest.security.auth.AuthenticationResult
Serves as DTO to hold the result of an authentication request performed
through an
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>)
).-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setAuthenticated
(boolean isAuthenticated) void
setAuthenticatedUser
(String authenticatedUser) void
void
setTenants
(List<String> tenants) static AuthenticationResult
successful
(String userId) static AuthenticationResult
static AuthenticationResult
unsuccessful
(String userId)
-
Field Details
-
isAuthenticated
protected boolean isAuthenticated -
authenticatedUser
-
groups
-
tenants
-
-
Constructor Details
-
AuthenticationResult
-
-
Method Details
-
getAuthenticatedUser
-
setAuthenticatedUser
-
isAuthenticated
public boolean isAuthenticated() -
setAuthenticated
public void setAuthenticated(boolean isAuthenticated) -
getGroups
-
setGroups
-
getTenants
-
setTenants
-
successful
-
unsuccessful
-
unsuccessful
-