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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetAuthenticated(boolean isAuthenticated) voidsetAuthenticatedUser(String authenticatedUser) voidvoidsetTenants(List<String> tenants) static AuthenticationResultsuccessful(String userId) static AuthenticationResultstatic AuthenticationResultunsuccessful(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
-