Class FlowableExpressionAuthTokenUtils
- java.lang.Object
-
- com.flowable.platform.expressions.FlowableExpressionAuthTokenUtils
-
public class FlowableExpressionAuthTokenUtils extends Object
Expression Bean Name: flwAuthTokenUtilsProvides utilities to deal with access tokens for external services.
- Author:
- Arthur Hupka-Merle
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<AuthTokenProvider>
authTokenProviders
-
Constructor Summary
Constructors Constructor Description FlowableExpressionAuthTokenUtils(Collection<AuthTokenProvider> authTokenProviders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessToken(String externalServiceId)
Obtain an access token for the given external service id.
-
-
-
Field Detail
-
authTokenProviders
protected final Collection<AuthTokenProvider> authTokenProviders
-
-
Constructor Detail
-
FlowableExpressionAuthTokenUtils
public FlowableExpressionAuthTokenUtils(Collection<AuthTokenProvider> authTokenProviders)
-
-
Method Detail
-
getAccessToken
public String getAccessToken(String externalServiceId)
Obtain an access token for the given external service id.- Parameters:
externalServiceId
- the service id to get the access token for- Returns:
- the access token or null in case no token provider is registered for the given service id or when the token could not be obtained due to authentication errors.
-
-