Package net.dona.doip.client
Class PrivateKeyAuthenticationInfo
java.lang.Object
net.dona.doip.client.PrivateKeyAuthenticationInfo
- All Implemented Interfaces:
AuthenticationInfo
An
AuthenticationInfo which provides an identity and a JWT signed by that entity's private key.-
Constructor Summary
ConstructorsConstructorDescriptionPrivateKeyAuthenticationInfo(String clientId, PrivateKey privateKey) PrivateKeyAuthenticationInfo(String clientId, PrivateKey privateKey, 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
-
PrivateKeyAuthenticationInfo
-
PrivateKeyAuthenticationInfo
-
-
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
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
- Throws:
DoipException
-