クラス NimbusReactiveJwtDecoder
java.lang.ObjectSE
org.springframework.security.oauth2.jwt.NimbusReactiveJwtDecoder
- 実装されたすべてのインターフェース:
ReactiveJwtDecoder
「デコード」する
ReactiveJwtDecoder
の実装。JSON Web トークン(JWT)。さらに、JWT が JSON Web 署名(JWS)である場合、そのデジタル署名を検証します。注意 : この実装では、Nimbus JOSE + JWT SDK を内部的に使用します。
ネストされたクラスのサマリー
修飾子と型クラス説明static final class
JWK セット uri に基づいてNimbusReactiveJwtDecoder
インスタンスを作成するためのビルダー。static final class
NimbusReactiveJwtDecoder
インスタンスを作成するためのビルダー。static final class
公開鍵に基づいてNimbusReactiveJwtDecoder
インスタンスを作成するためのビルダー。static final class
SecretKey
に基づいてNimbusReactiveJwtDecoder
インスタンスを作成するためのビルダー。コンストラクターのサマリー
コンストラクター説明NimbusReactiveJwtDecoder
(StringSE jwkSetUrl) 指定されたパラメーターを使用してNimbusReactiveJwtDecoder
を構築します。NimbusReactiveJwtDecoder
(RSAPublicKeySE publicKey) 指定されたパラメーターを使用してNimbusReactiveJwtDecoder
を構築します。NimbusReactiveJwtDecoder
(org.springframework.core.convert.converter.Converter<com.nimbusds.jwt.JWT, reactor.core.publisher.Mono<com.nimbusds.jwt.JWTClaimsSet>> jwtProcessor) 指定されたパラメーターを使用してNimbusReactiveJwtDecoder
を構築します。メソッドのサマリー
修飾子と型メソッド説明reactor.core.publisher.Mono<Jwt>
JWT をそのコンパクトなクレーム表現形式からデコードし、Jwt
を返します。void
setClaimSetConverter
(org.springframework.core.convert.converter.Converter<MapSE<StringSE, ObjectSE>, MapSE<StringSE, ObjectSE>> claimSetConverter) JWT のクレームセットを操作するには、次のConverter
を使用しますvoid
setJwtValidator
(OAuth2TokenValidator<Jwt> jwtValidator) 付属のOAuth2TokenValidator
を使用して、受信Jwt
を検証します。withIssuerLocation
(StringSE issuer) withJwkSetUri
(StringSE jwkSetUri) 指定された JWK セット uri を使用して、JWT を検証します。withJwkSource
(FunctionSE<com.nimbusds.jwt.SignedJWT, reactor.core.publisher.Flux<com.nimbusds.jose.jwk.JWK>> source) 指定されたFunction
SE を使用して JWT を検証します指定された公開鍵を使用して JWT を検証しますwithSecretKey
(SecretKeySE secretKey) 指定されたSecretKey
を使用して、JSON Web 署名(JWS)の MAC を検証します。
コンストラクターの詳細
NimbusReactiveJwtDecoder
指定されたパラメーターを使用してNimbusReactiveJwtDecoder
を構築します。- パラメーター:
jwkSetUrl
- JSON Web キー(JWK)セットURL
NimbusReactiveJwtDecoder
指定されたパラメーターを使用してNimbusReactiveJwtDecoder
を構築します。- パラメーター:
publicKey
- 署名の検証に使用されるRSAPublicKey
- 導入:
- 5.2
NimbusReactiveJwtDecoder
public NimbusReactiveJwtDecoder(org.springframework.core.convert.converter.Converter<com.nimbusds.jwt.JWT, reactor.core.publisher.Mono<com.nimbusds.jwt.JWTClaimsSet>> jwtProcessor) 指定されたパラメーターを使用してNimbusReactiveJwtDecoder
を構築します。- パラメーター:
jwtProcessor
- 署名された Jwt を処理および検証し、Jwt クレームセットを返すために使用されるConverter
- 導入:
- 5.2
メソッドの詳細
setJwtValidator
付属のOAuth2TokenValidator
を使用して、受信Jwt
を検証します。- パラメーター:
jwtValidator
- 使用するOAuth2TokenValidator
setClaimSetConverter
public void setClaimSetConverter(org.springframework.core.convert.converter.Converter<MapSE<StringSE, ObjectSE>, MapSE<StringSE, ObjectSE>> claimSetConverter) JWT のクレームセットを操作するには、次のConverter
を使用します- パラメーター:
claimSetConverter
- 使用するConverter
decode
インターフェースからコピーされた説明:ReactiveJwtDecoder
JWT をそのコンパクトなクレーム表現形式からデコードし、Jwt
を返します。- 次で指定:
- インターフェース
ReactiveJwtDecoder
のdecode
- パラメーター:
token
- JWT 値- 戻り値:
Jwt
withIssuerLocation
public static NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder withIssuerLocation(StringSE issuer) - パラメーター:
issuer
- 発行者- 戻り値:
NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder.build()
が呼び出されたときに JWK Set URI を導出するNimbusJwtDecoder.JwkSetUriJwtDecoderBuilder
- 導入:
- 6.1
- 関連事項:
withJwkSetUri
public static NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder withJwkSetUri(StringSE jwkSetUri) 指定された JWK セット uri を使用して、JWT を検証します。- パラメーター:
jwkSetUri
- 使用する JWK セット uri- 戻り値:
- さらなる構成のための
NimbusReactiveJwtDecoder.JwkSetUriReactiveJwtDecoderBuilder
- 導入:
- 5.2
withPublicKey
public static NimbusReactiveJwtDecoder.PublicKeyReactiveJwtDecoderBuilder withPublicKey(RSAPublicKeySE key) 指定された公開鍵を使用して JWT を検証します- パラメーター:
key
- 使用する公開鍵- 戻り値:
- さらなる構成のための
NimbusReactiveJwtDecoder.PublicKeyReactiveJwtDecoderBuilder
- 導入:
- 5.2
withSecretKey
public static NimbusReactiveJwtDecoder.SecretKeyReactiveJwtDecoderBuilder withSecretKey(SecretKeySE secretKey) 指定されたSecretKey
を使用して、JSON Web 署名(JWS)の MAC を検証します。- パラメーター:
secretKey
- MAC の検証に使用されるSecretKey
- 戻り値:
- さらなる構成のための
NimbusReactiveJwtDecoder.SecretKeyReactiveJwtDecoderBuilder
- 導入:
- 5.2
withJwkSource
public static NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilder withJwkSource(FunctionSE<com.nimbusds.jwt.SignedJWT, reactor.core.publisher.Flux<com.nimbusds.jose.jwk.JWK>> source) 指定されたFunction
SE を使用して JWT を検証します- パラメーター:
source
-Function
SE- 戻り値:
- さらなる構成のための
NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilder
- 導入:
- 5.2