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.JsonObjectReturns 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: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
-