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 JwtEncoderParameters
from
(JwsHeader jwsHeader, JwtClaimsSet claims) static JwtEncoderParameters
from
(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
- theJwsHeader
claims
- theJwtClaimsSet
- Returns:
- the
JwtEncoderParameters
-
getJwsHeader
Returns theJWS headers
.- Returns:
- the
JwsHeader
, ornull
if not specified
-
getClaims
Returns theclaims
.- Returns:
- the
JwtClaimsSet
-