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.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
-
PrivateKeyAuthenticationInfo
-
PrivateKeyAuthenticationInfo
-
-
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
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
- Throws:
DoipException
-