Class PasswordAuthenticationInfo

java.lang.Object
net.dona.doip.client.PasswordAuthenticationInfo
All Implemented Interfaces:
AuthenticationInfo

public class PasswordAuthenticationInfo extends Object implements AuthenticationInfo
An AuthenticationInfo which provides a username and a password.
  • Constructor Details

    • PasswordAuthenticationInfo

      public PasswordAuthenticationInfo(String username, String password)
    • PasswordAuthenticationInfo

      public PasswordAuthenticationInfo(String username, String password, String asUserId)
  • Method Details

    • getClientId

      public String getClientId()
      Description copied from interface: AuthenticationInfo
      Returns the clientId to be supplied with the initial segment of DOIP requests.
      Specified by:
      getClientId in interface AuthenticationInfo
      Returns:
      the clientId to be supplied with the initial segment of DOIP requests
    • getAuthentication

      public com.google.gson.JsonObject getAuthentication()
      Description copied from interface: AuthenticationInfo
      Returns the authentication property to be supplied with the initial segment of DOIP requests.
      Specified by:
      getAuthentication in interface AuthenticationInfo
      Returns:
      the authentication property to be supplied with the initial segment of DOIP requests