Class TokenAuthenticationInfo

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

public class TokenAuthenticationInfo extends Object implements AuthenticationInfo
An AuthenticationInfo which supplies a specified token for a specified clientId.
  • Constructor Details

    • TokenAuthenticationInfo

      public TokenAuthenticationInfo(String clientId, String token)
    • TokenAuthenticationInfo

      public TokenAuthenticationInfo(String clientId, String token, 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