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 Details

  • Constructor Details

    • AuthenticationProviderUsernamePasswordImpl

      public AuthenticationProviderUsernamePasswordImpl(String username, String password)
  • Method Details

    • getBearerToken

      public AnypointAccessToken getBearerToken(HttpHelper httpHelper) throws HttpException
      Specified by:
      getBearerToken in class AuthenticationProvider
      Throws:
      HttpException
    • filterSecret

      public String filterSecret(String resStr)
      Specified by:
      filterSecret in class AuthenticationProvider
    • getUsername

      public String getUsername()
    • getPassword

      public String getPassword()
    • refreshCredential

      public void refreshCredential(com.aeontronix.restclient.RESTClient restClient) throws com.aeontronix.restclient.RESTException
      Specified by:
      refreshCredential in interface com.aeontronix.restclient.auth.AuthenticationHandler
      Throws:
      com.aeontronix.restclient.RESTException
    • isRefreshRequired

      public boolean isRefreshRequired()
      Specified by:
      isRefreshRequired in interface com.aeontronix.restclient.auth.AuthenticationHandler
    • isRefreshable

      public boolean isRefreshable()
      Specified by:
      isRefreshable in interface com.aeontronix.restclient.auth.AuthenticationHandler
    • applyCredentials

      public void applyCredentials(com.aeontronix.restclient.RESTRequest request)
      Specified by:
      applyCredentials in interface com.aeontronix.restclient.auth.AuthenticationHandler