Interface GrpcServerSecurityRule

All Superinterfaces:
io.micronaut.core.order.Ordered
All Known Implementing Classes:
AbstractGrpcServerSecurityRule, InterceptMethodMapGrpcServerSecurityRule

public interface GrpcServerSecurityRule extends io.micronaut.core.order.Ordered
A security rule for a gRPC server call.
Since:
5.0.0
  • Field Summary

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    <T,S> io.micronaut.security.rules.SecurityRuleResult
    check(io.grpc.ServerCall<T,S> serverCall, io.grpc.Metadata metadata, @Nullable io.micronaut.security.authentication.Authentication authentication)
    Checks the current gRPC server call.

    Methods inherited from interface io.micronaut.core.order.Ordered

    getOrder
  • Method Details

    • check

      <T,S> io.micronaut.security.rules.SecurityRuleResult check(io.grpc.ServerCall<T,S> serverCall, io.grpc.Metadata metadata, @Nullable @Nullable io.micronaut.security.authentication.Authentication authentication)
      Checks the current gRPC server call.
      Type Parameters:
      T - The request type
      S - The response type
      Parameters:
      serverCall - The current gRPC call
      metadata - The gRPC metadata
      authentication - The authentication, if available
      Returns:
      The rule result, or SecurityRuleResult.UNKNOWN when the rule does not apply