IJWSBuilder Interface

public interface IJWSBuilder

Interface to construct jws message for responding certificate challenge.

Method Summary

Modifier and Type Method and Description
String generateJWT(Map<String, String> header, Map<String, String> body, int expTimeInSeconds)
String generateSignedJWT(String nonce, String submitUrl, RSAPrivateKey privateKey, RSAPublicKey pubKey, X509Certificate x509Certificate)

Method Details

generateJWT

public String generateJWT(Map header, Map body, int expTimeInSeconds)

Parameters:

header
body
expTimeInSeconds

generateSignedJWT

public String generateSignedJWT(String nonce, String submitUrl, RSAPrivateKey privateKey, RSAPublicKey pubKey, X509Certificate x509Certificate)

Parameters:

nonce - A unique value issued by the server in its challenge. The client is expected to return this value to the server in its signed JWT response in order to perform device authentication. The nonce is also persisted within the encrypted context parameter.
submitUrl - The version number of the challenge-response based device authentication protocol. This is set to 1.0.
privateKey - Private Key of the Device Certificate to sign the response
pubKey - Public Key of the Device Certificate
x509Certificate - X509 certificate

Returns:

Signed JWT

Throws:

AuthenticationException - when errors happens for generating signed JWT.

Applies to