クラス AuthenticationWebSocketInterceptor
java.lang.ObjectSE
org.springframework.graphql.server.support.AbstractAuthenticationWebSocketInterceptor
org.springframework.graphql.server.webmvc.AuthenticationWebSocketInterceptor
- 実装済みのインターフェース一覧:
WebGraphQlInterceptor,WebSocketGraphQlInterceptor
public final class AuthenticationWebSocketInterceptor
extends AbstractAuthenticationWebSocketInterceptor
WebMVC GraphQL トランスポートで使用するための
AbstractAuthenticationWebSocketInterceptor の拡張。- 導入:
- 1.3.0
- 作成者:
- Joshua Cummings, Rossen Stoyanchev
ネストされたクラスの概要
インターフェース org.springframework.graphql.server.WebGraphQlInterceptor から継承されたネストクラス / インターフェース
WebGraphQlInterceptor.Chainコンストラクター概要
コンストラクターコンストラクター説明AuthenticationWebSocketInterceptor(AuthenticationExtractor authExtractor, org.springframework.security.authentication.AuthenticationManager authManager) 方法の概要
修飾子と型メソッド説明protected reactor.core.publisher.Mono<org.springframework.security.core.Authentication> authenticate(org.springframework.security.core.Authentication authentication) サブクラスはこのメソッドを実装して、認証されたSecurityContextまたはエラーを返します。protected reactor.util.context.ContextViewgetContextToWrite(org.springframework.security.core.context.SecurityContext securityContext) サブクラスはこれを実装して、SecurityContextをWebSocketGraphQlInterceptorチェーンの Reactor コンテキストに挿入する方法を決定します。クラス org.springframework.graphql.server.support.AbstractAuthenticationWebSocketInterceptor から継承されたメソッド
handleConnectionInitialization, interceptクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.graphql.server.WebGraphQlInterceptor から継承されたメソッド
andThen, applyインターフェース org.springframework.graphql.server.WebSocketGraphQlInterceptor から継承されたメソッド
handleCancelledSubscription, handleConnectionClosed
コンストラクターの詳細
AuthenticationWebSocketInterceptor
public AuthenticationWebSocketInterceptor(AuthenticationExtractor authExtractor, org.springframework.security.authentication.AuthenticationManager authManager)
メソッドの詳細
authenticate
protected reactor.core.publisher.Mono<org.springframework.security.core.Authentication> authenticate(org.springframework.security.core.Authentication authentication) クラスからコピーされた説明:AbstractAuthenticationWebSocketInterceptorサブクラスはこのメソッドを実装して、認証されたSecurityContextまたはエラーを返します。- 次で指定:
- クラス
AbstractAuthenticationWebSocketInterceptorのauthenticate - パラメーター:
authentication- ペイロードから抽出された認証値
getContextToWrite
protected reactor.util.context.ContextView getContextToWrite(org.springframework.security.core.context.SecurityContext securityContext) クラスからコピーされた説明:AbstractAuthenticationWebSocketInterceptorサブクラスはこれを実装して、SecurityContextをWebSocketGraphQlInterceptorチェーンの Reactor コンテキストに挿入する方法を決定します。- 次で指定:
- クラス
AbstractAuthenticationWebSocketInterceptorのgetContextToWrite - パラメーター:
securityContext-SecurityContextがコンテキストに書き込む