Package io.fusionauth.jwt
Class JWTEncoder
java.lang.Object
io.fusionauth.jwt.JWTEncoder
- Author:
- Daniel DeGroff
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEncode the JWT to produce a dot separated encoded string that can be sent in an HTTP request header.Encode the JWT to produce a dot separated encoded string that can be sent in an HTTP request header.
-
Constructor Details
-
JWTEncoder
public JWTEncoder()
-
-
Method Details
-
encode
Encode the JWT to produce a dot separated encoded string that can be sent in an HTTP request header.- Parameters:
jwt- The JWT.signer- The signer used to add a signature to the JWT.- Returns:
- the encoded JWT string.
-
encode
Encode the JWT to produce a dot separated encoded string that can be sent in an HTTP request header.- Parameters:
jwt- The JWT.signer- The signer used to add a signature to the JWT.consumer- A header consumer to optionally add header values to the encoded JWT. May be null.- Returns:
- the encoded JWT string.
-