public class JwtBuilderFactory extends Object
Constructor and Description |
---|
JwtBuilderFactory() |
Modifier and Type | Method and Description |
---|---|
JwtClaimsSetBuilder |
claims()
Creates a builder for building a JWT Claims Set to be used in the building of JWTs.
|
EncryptedJwtBuilder |
jwe(Key publicKey)
Creates a builder for building an encrypted JWT into a base64url UTF-8 encoded JWT string.
|
SignedJwtBuilderImpl |
jws(SigningHandler signingHandler)
Creates a builder for building a signed JWT into a base64url UTF-8 encoded JWT string.
|
SignedJwtBuilderImpl |
jwt()
Creates a builder for building a plaintext JWT into base64url UTF-8 encoded JWT string.
|
<T extends Jwt> |
reconstruct(String jwtString,
Class<T> jwtClass)
Reconstructs the given JWT string into a JWT object of the specified type.
|
public SignedJwtBuilderImpl jwt()
public SignedJwtBuilderImpl jws(SigningHandler signingHandler)
signingHandler
- The SigningHandler instance used to sign the JWS.public EncryptedJwtBuilder jwe(Key publicKey)
publicKey
- The public key that will be used to encrypted the JWT.public JwtClaimsSetBuilder claims()
public <T extends Jwt> T reconstruct(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.Copyright © 2025 Open Identity Platform Community. All rights reserved.