public class ApiPlatformAuthenticator extends Object
| Constructor and Description |
|---|
ApiPlatformAuthenticator(GatewayHttpClient client,
URI tokenUrl,
URI loginUrl,
String clientId,
String clientSecret) |
| Modifier and Type | Method and Description |
|---|---|
AccessTokens |
authenticate()
Authenticates to Anypoint Platform when required.
|
void |
unauthorizedUsing(String accessToken)
Indicates that an API call to Anypoint Platform made in another place was unauthorized.
|
public ApiPlatformAuthenticator(GatewayHttpClient client, URI tokenUrl, URI loginUrl, String clientId, String clientSecret)
public AccessTokens authenticate()
AccessTokenspublic void unauthorizedUsing(String accessToken)
accessToken - the access token used in the API call that was rejected.Copyright © 2014–2024 MuleSoft, Inc.. All rights reserved.