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 SummaryModifier 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- 
fromReturns a newJwtEncoderParameters, initialized with the providedJwtClaimsSet.- Parameters:
- claims- the- JwtClaimsSet
- Returns:
- the JwtEncoderParameters
 
- 
from- Parameters:
- jwsHeader- the- JwsHeader
- claims- the- JwtClaimsSet
- Returns:
- the JwtEncoderParameters
 
- 
getJwsHeaderReturns theJWS headers.- Returns:
- the JwsHeader, ornullif not specified
 
- 
getClaimsReturns theclaims.- Returns:
- the JwtClaimsSet
 
 
-