Class DelegatingGrpcAuthenticationExtractor
java.lang.Object
org.springframework.grpc.server.security.DelegatingGrpcAuthenticationExtractor
- All Implemented Interfaces:
GrpcAuthenticationExtractor
public final class DelegatingGrpcAuthenticationExtractor
extends Object
implements GrpcAuthenticationExtractor
A
GrpcAuthenticationExtractor that iterates over other
GrpcAuthenticationExtractor instances in the order supplied. The first non-null
Authentication is the result, and the remaining delegates are not called. An
exception from a delegate is not caught.- Author:
- Gabriel Hall
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescription@Nullable org.springframework.security.core.Authenticationextract(io.grpc.Metadata headers, io.grpc.Attributes attributes, io.grpc.MethodDescriptor<?, ?> method)
-
Constructor Details
-
DelegatingGrpcAuthenticationExtractor
-
DelegatingGrpcAuthenticationExtractor
-
-
Method Details
-
extract
public @Nullable org.springframework.security.core.Authentication extract(io.grpc.Metadata headers, io.grpc.Attributes attributes, io.grpc.MethodDescriptor<?, ?> method) - Specified by:
extractin interfaceGrpcAuthenticationExtractor
-