public class JwtReconstruction extends Object
Constructor and Description |
---|
JwtReconstruction()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
JwtReconstruction |
recognizedHeaders(String... headers)
Configures additional application-specific header values that are understood and processed by the application.
|
<T extends Jwt> |
reconstructJwt(String jwtString,
Class<T> jwtClass)
Reconstructs the given JWT string into a JWT object of the specified type.
|
public JwtReconstruction recognizedHeaders(String... headers)
headers
- the set of headers to add to the recognized set.public <T extends Jwt> T reconstructJwt(String jwtString, Class<T> jwtClass)
T
- The type of JWT the JWT string represents.jwtString
- The JWT string.jwtClass
- The JWT class to reconstruct the JWT string to.InvalidJwtException
- If the jwt does not consist of the correct number of parts or is malformed.JwtReconstructionException
- If the jwt does not consist of the correct number of parts.UnrecognizedCriticalHeaderException
- If the JWT contains critical headers ("crit") that are
not recognized by the application.Copyright © 2010-2018, ForgeRock All Rights Reserved.