Package org.forgerock.json.jose.common
Class JwtReconstruction
java.lang.Object
org.forgerock.json.jose.common.JwtReconstruction
A service that provides a method for reconstruct a JWT string back into its relevant JWT object,
(SignedJwt, EncryptedJwt, SignedEncryptedJwt).
- Since:
- 2.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Jwt>
TreconstructJwt
(String jwtString, Class<T> jwtClass) Reconstructs the given JWT string into a JWT object of the specified type.
-
Constructor Details
-
JwtReconstruction
public JwtReconstruction()
-
-
Method Details
-
reconstructJwt
Reconstructs the given JWT string into a JWT object of the specified type.- Type Parameters:
T
- The type of JWT the JWT string represents.- Parameters:
jwtString
- The JWT string.jwtClass
- The JWT class to reconstruct the JWT string to.- Returns:
- The reconstructed JWT object.
- Throws:
InvalidJwtException
- If the jwt does not consist of the correct number of parts.JwtReconstructionException
- If the jwt does not consist of the correct number of parts.
-