クラス SpringReactiveOpaqueTokenIntrospector
java.lang.ObjectSE
org.springframework.security.oauth2.server.resource.introspection.SpringReactiveOpaqueTokenIntrospector
- 実装されたすべてのインターフェース:
ReactiveOpaqueTokenIntrospector
public class SpringReactiveOpaqueTokenIntrospector
extends ObjectSE
implements ReactiveOpaqueTokenIntrospector
構成された OAuth 2.0 イントロスペクションエンドポイントを使用してトークンを検証およびイントロスペクトする
ReactiveOpaqueTokenIntrospector
の Spring 実装。- 導入:
- 5.6
コンストラクターのサマリー
コンストラクターコンストラクター説明SpringReactiveOpaqueTokenIntrospector
(StringSE introspectionUri, StringSE clientId, StringSE clientSecret) 指定されたパラメーターでOpaqueTokenReactiveAuthenticationManager
を作成しますSpringReactiveOpaqueTokenIntrospector
(StringSE introspectionUri, org.springframework.web.reactive.function.client.WebClient webClient) 指定されたパラメーターでOpaqueTokenReactiveAuthenticationManager
を作成しますメソッドのサマリー
修飾子と型メソッド説明reactor.core.publisher.Mono<OAuth2AuthenticatedPrincipal>
introspect
(StringSE token) 指定されたトークンを内観して検証し、その属性を返します。void
setAuthenticationConverter
(org.springframework.core.convert.converter.Converter<OAuth2TokenIntrospectionClaimAccessor, reactor.core.publisher.Mono<? extends OAuth2AuthenticatedPrincipal>> authenticationConverter) 使用するConverter<OAuth2TokenIntrospectionClaimAccessor, OAuth2AuthenticatedPrincipal>
を設定します。
コンストラクターの詳細
SpringReactiveOpaqueTokenIntrospector
public SpringReactiveOpaqueTokenIntrospector(StringSE introspectionUri, StringSE clientId, StringSE clientSecret) 指定されたパラメーターでOpaqueTokenReactiveAuthenticationManager
を作成します- パラメーター:
introspectionUri
- イントロスペクションエンドポイント URIclientId
- イントロスペクトすることを認可されたクライアント IDclientSecret
- 認可されたクライアントのクライアントシークレット
SpringReactiveOpaqueTokenIntrospector
public SpringReactiveOpaqueTokenIntrospector(StringSE introspectionUri, org.springframework.web.reactive.function.client.WebClient webClient) 指定されたパラメーターでOpaqueTokenReactiveAuthenticationManager
を作成します- パラメーター:
introspectionUri
- イントロスペクションエンドポイント URIwebClient
- イントロスペクションリクエストを実行するためのクライアント
メソッドの詳細
introspect
インターフェースからコピーされた説明:ReactiveOpaqueTokenIntrospector
指定されたトークンを調べて検証し、その属性を返します。Map
SE を返すことは、トークンが有効であることを示しています。- 次で指定:
- インターフェース
ReactiveOpaqueTokenIntrospector
のintrospect
- パラメーター:
token
- 内省するトークン- 戻り値:
- トークンの属性
setAuthenticationConverter
public void setAuthenticationConverter(org.springframework.core.convert.converter.Converter<OAuth2TokenIntrospectionClaimAccessor, reactor.core.publisher.Mono<? extends OAuth2AuthenticatedPrincipal>> authenticationConverter) 使用する
Converter<OAuth2TokenIntrospectionClaimAccessor, OAuth2AuthenticatedPrincipal>
を設定します。デフォルトはdefaultAuthenticationConverter(org.springframework.security.oauth2.core.OAuth2TokenIntrospectionClaimAccessor)
です。OAuth 2.0 トークン要求を認証されたプリンシパルにカスタムマッピングする必要がある場合に使用します。
- パラメーター:
authenticationConverter
- コンバーター- 導入:
- 6.3