Interface GrpcSecurityMechanism


public interface GrpcSecurityMechanism
gRPC security mechanism based on gRPC call metadata To secure your gRPC endpoints, create a CDI bean implementing this interface. Make sure that an IdentityProvider for the AuthenticationRequest returned by createAuthenticationRequest is available by adding a suitable extension to your application.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.quarkus.security.identity.request.AuthenticationRequest
    createAuthenticationRequest(io.grpc.Metadata metadata)
     
    default int
     
    boolean
    handles(io.grpc.Metadata metadata)
     
  • Field Details

  • Method Details

    • 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()