クラス 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 classJWK セット uri に基づいてNimbusReactiveJwtDecoderインスタンスを作成するためのビルダー。static final classNimbusReactiveJwtDecoderインスタンスを作成するためのビルダー。static final class公開鍵に基づいてNimbusReactiveJwtDecoderインスタンスを作成するためのビルダー。static final classSecretKeyに基づいて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を返します。voidsetClaimSetConverter(org.springframework.core.convert.converter.Converter<MapSE<StringSE, ObjectSE>, MapSE<StringSE, ObjectSE>> claimSetConverter) JWT のクレームセットを操作するには、次のConverterを使用しますvoidsetJwtValidator(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) 指定されたFunctionSE を使用して 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
インターフェースからコピーされた説明:ReactiveJwtDecoderJWT をそのコンパクトなクレーム表現形式からデコードし、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) 指定されたFunctionSE を使用して JWT を検証します- パラメーター:
source-FunctionSE- 戻り値:
- さらなる構成のための
NimbusReactiveJwtDecoder.JwkSourceReactiveJwtDecoderBuilder - 導入:
- 5.2