Class EnteredCredentialsProvider

  • All Implemented Interfaces:
    CredentialsProvider

    public class EnteredCredentialsProvider
    extends Object
    implements CredentialsProvider
    Default implementation of CredentialsProvider that is expected to get user name and password when instantiating instance and then return Basic type of authorization header.
    • Constructor Detail

      • EnteredCredentialsProvider

        public EnteredCredentialsProvider​(String username,
                                          String password)
    • Method Detail

      • getAuthorization

        public String getAuthorization()
        Description copied from interface: CredentialsProvider
        Returns authorization string that shall be used for setting up "Authorization" header for HTTP communication. It's expected to be completely setup including prefix (such as Basic) and encryption (such as Base64 in case of basic) if needed.
        Specified by:
        getAuthorization in interface CredentialsProvider
        Returns:
      • getUsername

        public String getUsername()
      • setUsername

        public void setUsername​(String username)
      • getPassword

        public String getPassword()
      • setPassword

        public void setPassword​(String password)