クラス BearerTokenAuthenticationExtractor
java.lang.ObjectSE
org.springframework.grpc.server.security.BearerTokenAuthenticationExtractor
- 実装済みのインターフェース一覧:
GrpcAuthenticationExtractor
public class BearerTokenAuthenticationExtractor
extends ObjectSE
implements GrpcAuthenticationExtractor
gRPC リクエストヘッダーから HTTP 基本認証情報を抽出します。"Authorization" ヘッダーが存在し、"Basic " で始まる場合、Base64 エンコードされたヘッダー値からユーザー名とパスワードが抽出され、
UsernamePasswordAuthenticationToken として返されます。ヘッダーが存在しない場合、または "Basic " で始まらない場合は、null が返されます。- 作成者:
- Dave Syer
コンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明@Nullable org.springframework.security.core.Authenticationextract(io.grpc.Metadata headers, io.grpc.Attributes attributes, io.grpc.MethodDescriptor<?, ?> method)
コンストラクターの詳細
BearerTokenAuthenticationExtractor
public BearerTokenAuthenticationExtractor()
方法の詳細
extract
public @Nullable org.springframework.security.core.Authentication extract(io.grpc.Metadata headers, io.grpc.Attributes attributes, io.grpc.MethodDescriptor<?, ?> method) - 次で指定:
- インターフェース
GrpcAuthenticationExtractor内のextract