Class Jwks
java.lang.Object
ntnu.idatt2016.v233.SmartMat.util.rsa.Jwks
Jwks is a utility class for generating RSA keys for JSON Web Key Set (JWKS) support.
It provides a method to generate an RSA key pair and create an RSAKey object.
- Version:
- 1.0
- Author:
- Anders
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.nimbusds.jose.jwk.RSAKey
Generates an RSA key pair, creates an RSAKey object, and assigns a unique key ID to it.
-
Method Details
-
generateRsa
public static com.nimbusds.jose.jwk.RSAKey generateRsa()Generates an RSA key pair, creates an RSAKey object, and assigns a unique key ID to it.- Returns:
- An RSAKey object with a public key, private key, and a unique key ID.
-