Package net.dona.doip.client
Class PasswordAuthenticationInfo
java.lang.Object
net.dona.doip.client.PasswordAuthenticationInfo
- All Implemented Interfaces:
AuthenticationInfo
An
AuthenticationInfo
which provides a username and a password.-
Constructor Summary
ConstructorsConstructorDescriptionPasswordAuthenticationInfo
(String username, String password) PasswordAuthenticationInfo
(String username, String password, 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
-
PasswordAuthenticationInfo
-
PasswordAuthenticationInfo
-
-
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
-