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
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for