クラス AuthenticationWebSocketInterceptor

java.lang.ObjectSE
org.springframework.graphql.server.support.AbstractAuthenticationWebSocketInterceptor
org.springframework.graphql.server.webflux.AuthenticationWebSocketInterceptor
実装済みのインターフェース一覧:
WebGraphQlInterceptorWebSocketGraphQlInterceptor

public final class AuthenticationWebSocketInterceptor extends AbstractAuthenticationWebSocketInterceptor
WebFlux GraphQL トランスポートで使用するための AbstractAuthenticationWebSocketInterceptor の拡張。
導入:
1.3.0
作成者:
Joshua Cummings, Rossen Stoyanchev
  • コンストラクターの詳細

    • AuthenticationWebSocketInterceptor

      public AuthenticationWebSocketInterceptor(AuthenticationExtractor extractor, org.springframework.security.authentication.ReactiveAuthenticationManager manager)
  • メソッドの詳細

    • authenticate

      protected reactor.core.publisher.Mono<org.springframework.security.core.Authentication> authenticate(org.springframework.security.core.Authentication authentication)
      クラスからコピーされた説明: AbstractAuthenticationWebSocketInterceptor
      サブクラスはこのメソッドを実装して、認証された SecurityContext またはエラーを返します。
      次で指定:
      クラス AbstractAuthenticationWebSocketInterceptorauthenticate 
      パラメーター:
      authentication - ペイロードから抽出された認証値
    • getContextToWrite

      protected reactor.util.context.ContextView getContextToWrite(org.springframework.security.core.context.SecurityContext securityContext)
      クラスからコピーされた説明: AbstractAuthenticationWebSocketInterceptor
      サブクラスはこれを実装して、SecurityContext を WebSocketGraphQlInterceptor チェーンの Reactor コンテキストに挿入する方法を決定します。
      次で指定:
      クラス AbstractAuthenticationWebSocketInterceptorgetContextToWrite 
      パラメーター:
      securityContext - SecurityContext がコンテキストに書き込む