クラス AuthenticationProcessInterceptor

java.lang.ObjectSE
org.springframework.grpc.server.security.AuthenticationProcessInterceptor
実装済みのインターフェース一覧:
io.grpc.ServerInterceptor, org.springframework.core.Ordered

public class AuthenticationProcessInterceptor extends ObjectSE implements io.grpc.ServerInterceptor, org.springframework.core.Ordered
gRPC リクエストのヘッダーとメタデータから認証情報を抽出し、ユーザーを認証して、SecurityContext に認証情報を設定するインターセプター。このインターセプターは、gRPC リクエストの認証と認可を処理するために、gRPC サーバーに登録する必要があります。
作成者:
Dave Syer, Hyunsang Han
  • フィールド概要

    インターフェース org.springframework.core.Ordered から継承されたフィールド

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • コンストラクター概要

    コンストラクター
    コンストラクター
    説明
    AuthenticationProcessInterceptor(org.springframework.security.authentication.AuthenticationManager authenticationManager, GrpcAuthenticationExtractor extractor, org.springframework.security.authorization.AuthorizationManager<CallContext> authorizationManager)
  • 方法の概要

    修飾子と型
    メソッド
    説明
    int
    <ReqT,RespT>
    io.grpc.ServerCall.Listener<ReqT>
    interceptCall(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> next)

    クラス ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • コンストラクターの詳細

    • AuthenticationProcessInterceptor

      public AuthenticationProcessInterceptor(org.springframework.security.authentication.AuthenticationManager authenticationManager, GrpcAuthenticationExtractor extractor, org.springframework.security.authorization.AuthorizationManager<CallContext> authorizationManager)
  • 方法の詳細

    • getOrder

      public int getOrder()
      次で指定:
      インターフェース org.springframework.core.Ordered 内の getOrder 
    • interceptCall

      public <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> next)
      次で指定:
      インターフェース io.grpc.ServerInterceptor 内の interceptCall