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 Details

  • 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:
      extract in interface GrpcAuthenticationExtractor