com.aeontronix.enhancedmule.tools.emclient.authentication.CredentialsProviderAnypointBearerToken Maven / Gradle / Ivy
/*
* Copyright (c) Aeontronix 2021
*/
package com.aeontronix.enhancedmule.tools.emclient.authentication;
import com.aeontronix.enhancedmule.tools.authentication.AnypointBearerTokenCredentials;
import com.aeontronix.enhancedmule.tools.authentication.Credentials;
import com.aeontronix.enhancedmule.tools.emclient.EnhancedMuleClient;
import java.io.IOException;
public class CredentialsProviderAnypointBearerToken implements CredentialsProvider, AnypointBearerTokenCredentialsProvider {
private String anypointBearerToken;
@Override
public Credentials getCredentials() throws IOException {
return new AnypointBearerTokenCredentials(anypointBearerToken);
}
public CredentialsProviderAnypointBearerToken(String anypointBearerToken) {
this.anypointBearerToken = anypointBearerToken;
}
@Override
public String getAnypointBearerToken(EnhancedMuleClient restClient) throws IOException {
return anypointBearerToken;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy