Package net.dona.doip.client
Class TokenAuthenticationInfo
- java.lang.Object
-
- net.dona.doip.client.TokenAuthenticationInfo
-
- All Implemented Interfaces:
AuthenticationInfo
public class TokenAuthenticationInfo extends java.lang.Object implements AuthenticationInfo
AnAuthenticationInfowhich supplies a specified token for a specified clientId.
-
-
Constructor Summary
Constructors Constructor Description TokenAuthenticationInfo(java.lang.String clientId, java.lang.String token)TokenAuthenticationInfo(java.lang.String clientId, java.lang.String token, java.lang.String asUserId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gson.JsonObjectgetAuthentication()Returns the authentication property to be supplied with the initial segment of DOIP requests.java.lang.StringgetClientId()Returns the clientId to be supplied with the initial segment of DOIP requests.
-
-
-
Method Detail
-
getClientId
public java.lang.String getClientId()
Description copied from interface:AuthenticationInfoReturns the clientId to be supplied with the initial segment of DOIP requests.- Specified by:
getClientIdin interfaceAuthenticationInfo- Returns:
- the clientId to be supplied with the initial segment of DOIP requests
-
getAuthentication
public com.google.gson.JsonObject getAuthentication()
Description copied from interface:AuthenticationInfoReturns the authentication property to be supplied with the initial segment of DOIP requests.- Specified by:
getAuthenticationin interfaceAuthenticationInfo- Returns:
- the authentication property to be supplied with the initial segment of DOIP requests
-
-