Package net.dona.doip.client
Class TokenAuthenticationInfo
java.lang.Object
net.dona.doip.client.TokenAuthenticationInfo
- All Implemented Interfaces:
AuthenticationInfo
An
AuthenticationInfo
which supplies a specified token for a specified clientId.-
Constructor Summary
ConstructorsConstructorDescriptionTokenAuthenticationInfo
(String clientId, String token) TokenAuthenticationInfo
(String clientId, String token, String asUserId) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObject
Returns the authentication property to be supplied with the initial segment of DOIP requests.Returns the clientId to be supplied with the initial segment of DOIP requests.
-
Constructor Details
-
TokenAuthenticationInfo
-
TokenAuthenticationInfo
-
-
Method Details
-
getClientId
Description copied from interface:AuthenticationInfo
Returns the clientId to be supplied with the initial segment of DOIP requests.- Specified by:
getClientId
in 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:AuthenticationInfo
Returns the authentication property to be supplied with the initial segment of DOIP requests.- Specified by:
getAuthentication
in interfaceAuthenticationInfo
- Returns:
- the authentication property to be supplied with the initial segment of DOIP requests
-