public final class NimbusJwtDecoder extends java.lang.Object implements JwtDecoder
JwtDecoder の低レベル Nimbus 実装。| 修飾子と型 | クラスと説明 |
|---|---|
static class | NimbusJwtDecoder.JwkSetUriJwtDecoderBuilderJWK セット uri に基づいて NimbusJwtDecoder インスタンスを作成するためのビルダー。 |
static class | NimbusJwtDecoder.PublicKeyJwtDecoderBuilder 公開鍵に基づいて NimbusJwtDecoder インスタンスを作成するためのビルダー。 |
static class | NimbusJwtDecoder.SecretKeyJwtDecoderBuilderSecretKey に基づいて NimbusJwtDecoder インスタンスを作成するためのビルダー。 |
| コンストラクターと説明 |
|---|
NimbusJwtDecoder(com.nimbusds.jwt.proc.JWTProcessor<com.nimbusds.jose.proc.SecurityContext> jwtProcessor) 指定されたパラメーターで NimbusJwtDecoder を構成します |
| 修飾子と型 | メソッドと説明 |
|---|---|
Jwt | decode(java.lang.String token) コンパクトなクレーム表現形式から JWT をデコードして検証する |
void | setClaimSetConverter(org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,java.lang.Object>,java.util.Map<java.lang.String,java.lang.Object>> claimSetConverter)JWT のクレームセットを操作するには、次の Converter を使用します |
void | setJwtValidator(OAuth2TokenValidator<Jwt> jwtValidator) この Jwt Validator を使用してください |
static NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder | withJwkSetUri(java.lang.String jwkSetUri) 指定された JWK セット uri を使用します。 |
static NimbusJwtDecoder.PublicKeyJwtDecoderBuilder | withPublicKey(java.security.interfaces.RSAPublicKey key) 指定された公開鍵を使用して JWT を検証します |
static NimbusJwtDecoder.SecretKeyJwtDecoderBuilder | withSecretKey(javax.crypto.SecretKey secretKey) 指定された SecretKey を使用して、JSON Web 署名(JWS)の MAC を検証します。 |
public NimbusJwtDecoder(com.nimbusds.jwt.proc.JWTProcessor<com.nimbusds.jose.proc.SecurityContext> jwtProcessor)
NimbusJwtDecoder を構成します jwtProcessor - - 使用する JWTProcessor public void setJwtValidator(OAuth2TokenValidator<Jwt> jwtValidator)
Jwt Validator を使用してください jwtValidator - - 使用する Jwt Validatorpublic void setClaimSetConverter(org.springframework.core.convert.converter.Converter<java.util.Map<java.lang.String,java.lang.Object>,java.util.Map<java.lang.String,java.lang.Object>> claimSetConverter)
Converter を使用します claimSetConverter - 使用する Converter public Jwt decode(java.lang.String token) throws JwtException
JwtDecoder 内の decode token - JWT 値 JwtJwtExceptionpublic static NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder withJwkSetUri(java.lang.String jwkSetUri)
jwkSetUri - 使用する JWK セット uriNimbusJwtDecoder.JwkSetUriJwtDecoderBuilderpublic static NimbusJwtDecoder.PublicKeyJwtDecoderBuilder withPublicKey(java.security.interfaces.RSAPublicKey key)
key - 使用する公開鍵 NimbusJwtDecoder.PublicKeyJwtDecoderBuilderpublic static NimbusJwtDecoder.SecretKeyJwtDecoderBuilder withSecretKey(javax.crypto.SecretKey secretKey)
SecretKey を使用して、JSON Web 署名(JWS)の MAC を検証します。secretKey - MAC の検証に使用される SecretKey NimbusJwtDecoder.SecretKeyJwtDecoderBuilder