public class BearerAuthenticationReader extends java.lang.Object implements GrpcAuthenticationReader
bearer token from the request.| Constructor and Description |
|---|
BearerAuthenticationReader() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.Authentication |
readAuthentication(io.grpc.ServerCall<?,?> call,
io.grpc.Metadata headers)
Tries to read the
Authentication information from the given call and metadata. |
public org.springframework.security.core.Authentication readAuthentication(io.grpc.ServerCall<?,?> call,
io.grpc.Metadata headers)
GrpcAuthenticationReaderAuthentication information from the given call and metadata.
Note: Implementations are free to throw an AuthenticationException if no credentials could be
found in the call. If an exception is thrown by an implementation then the authentication attempt should be
considered as failed and no subsequent GrpcAuthenticationReaders should be called.
readAuthentication in interface GrpcAuthenticationReadercall - The call to get that send the request.headers - The metadata/headers as sent by the client.