Class JwtEncoderParameters
java.lang.Object
org.springframework.security.oauth2.jwt.JwtEncoderParameters
A holder of parameters containing the JWS headers and JWT Claims Set.
- Since:
- 5.6
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic JwtEncoderParametersfrom(JwsHeader jwsHeader, JwtClaimsSet claims) static JwtEncoderParametersfrom(JwtClaimsSet claims) Returns a newJwtEncoderParameters, initialized with the providedJwtClaimsSet.Returns theclaims.Returns theJWS headers.
-
Method Details
-
from
Returns a newJwtEncoderParameters, initialized with the providedJwtClaimsSet.- Parameters:
claims- theJwtClaimsSet- Returns:
- the
JwtEncoderParameters
-
from
- Parameters:
jwsHeader- theJwsHeaderclaims- theJwtClaimsSet- Returns:
- the
JwtEncoderParameters
-
getJwsHeader
Returns theJWS headers.- Returns:
- the
JwsHeader, ornullif not specified
-
getClaims
Returns theclaims.- Returns:
- the
JwtClaimsSet
-