Class AuthenticationProviderUsernamePasswordImpl
java.lang.Object
com.aeontronix.enhancedmule.tools.anypoint.authentication.AuthenticationProvider
com.aeontronix.enhancedmule.tools.anypoint.authentication.AuthenticationProviderUsernamePasswordImpl
- All Implemented Interfaces:
com.aeontronix.restclient.auth.AuthenticationHandler
public class AuthenticationProviderUsernamePasswordImpl
extends AuthenticationProvider
implements com.aeontronix.restclient.auth.AuthenticationHandler
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationProviderUsernamePasswordImpl(String username, String password) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyCredentials(com.aeontronix.restclient.RESTRequest request) filterSecret(String resStr) getBearerToken(HttpHelper httpHelper) booleanbooleanvoidrefreshCredential(com.aeontronix.restclient.RESTClient restClient) Methods inherited from class com.aeontronix.enhancedmule.tools.anypoint.authentication.AuthenticationProvider
createHttpClient, createHttpClient
-
Field Details
-
LOGIN_PATH
- See Also:
-
-
Constructor Details
-
AuthenticationProviderUsernamePasswordImpl
-
-
Method Details
-
getBearerToken
- Specified by:
getBearerTokenin classAuthenticationProvider- Throws:
HttpException
-
filterSecret
- Specified by:
filterSecretin classAuthenticationProvider
-
getUsername
-
getPassword
-
refreshCredential
public void refreshCredential(com.aeontronix.restclient.RESTClient restClient) throws com.aeontronix.restclient.RESTException - Specified by:
refreshCredentialin interfacecom.aeontronix.restclient.auth.AuthenticationHandler- Throws:
com.aeontronix.restclient.RESTException
-
isRefreshRequired
public boolean isRefreshRequired()- Specified by:
isRefreshRequiredin interfacecom.aeontronix.restclient.auth.AuthenticationHandler
-
isRefreshable
public boolean isRefreshable()- Specified by:
isRefreshablein interfacecom.aeontronix.restclient.auth.AuthenticationHandler
-
applyCredentials
public void applyCredentials(com.aeontronix.restclient.RESTRequest request) - Specified by:
applyCredentialsin interfacecom.aeontronix.restclient.auth.AuthenticationHandler
-