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 TypeMethodDescription<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 typeS- The response type- Parameters:
serverCall- The current gRPC callmetadata- The gRPC metadataauthentication- The authentication, if available- Returns:
- The rule result, or
SecurityRuleResult.UNKNOWNwhen the rule does not apply
-