Package io.quarkus.grpc.auth
Interface GrpcSecurityMechanism
-
public interface GrpcSecurityMechanismgRPC security mechanism based on gRPC call metadata To secure your gRPC endpoints, create a CDI bean implementing this interface. Make sure that anIdentityProviderfor theAuthenticationRequestreturned bycreateAuthenticationRequestis available by adding a suitable extension to your application.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_PRIORITY
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description io.quarkus.security.identity.request.AuthenticationRequestcreateAuthenticationRequest(io.grpc.Metadata metadata)default intgetPriority()booleanhandles(io.grpc.Metadata metadata)
-
-
-
Field Detail
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
handles
boolean handles(io.grpc.Metadata metadata)
- Parameters:
metadata- metadata of the gRPC call- Returns:
- true if and only if the interceptor should handle security for this metadata. An interceptor may decide it should not be triggered for a call e.g. if some header is missing in metadata.
-
createAuthenticationRequest
io.quarkus.security.identity.request.AuthenticationRequest createAuthenticationRequest(io.grpc.Metadata metadata)
- Parameters:
metadata- metadata of the gRPC call- Returns:
- authentication request based on the metadata
-
getPriority
default int getPriority()
-
-