Package com.nimbusds.oauth2.sdk.util
Class JWTClaimsSetUtils
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.util.JWTClaimsSetUtils
-
public final class JWTClaimsSetUtils extends Object
JSON Web Token (JWT) claims set utilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.nimbusds.jwt.JWTClaimsSet
toJWTClaimsSet(Map<String,List<String>> params)
Creates a JWT claims set from the specified multi-valued parameters.static Map<String,List<String>>
toMultiValuedParameters(com.nimbusds.jwt.JWTClaimsSet claimsSet)
Creates a multi-valued string parameters map from the specified JWT claims set.
-
-
-
Method Detail
-
toJWTClaimsSet
public static com.nimbusds.jwt.JWTClaimsSet toJWTClaimsSet(Map<String,List<String>> params)
Creates a JWT claims set from the specified multi-valued parameters. Single-valued parameters are mapped to a string claim. Multi-valued parameters are mapped to a string array claim.- Parameters:
params
- The multi-valued parameters. Must not benull
.- Returns:
- The JWT claims set.
-
toMultiValuedParameters
public static Map<String,List<String>> toMultiValuedParameters(com.nimbusds.jwt.JWTClaimsSet claimsSet)
Creates a multi-valued string parameters map from the specified JWT claims set.registered JWT claims
andnull
valued claims are not included in the returned parameters.- Parameters:
claimsSet
- The JWT claims set. Must not benull
.- Returns:
- The string parameters map.
-
-