クラス 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) 方法の概要
修飾子と型メソッド説明intgetOrder()<ReqT,RespT>
io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT, RespT> next)
コンストラクターの詳細
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