Interface GrpcServerSecurityConfiguration

All Superinterfaces:
io.micronaut.core.util.Toggleable

@Requires(configuration="io.micronaut.security") @Requires(property="grpc.server.security.enabled",notEquals="false",defaultValue="true") @ConfigurationProperties("grpc.server.security") public interface GrpcServerSecurityConfiguration extends io.micronaut.core.util.Toggleable
gRPC server security configuration.
Since:
5.0.0
  • Field Details

  • Method Details

    • isEnabled

      @Bindable(defaultValue="true") boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • getMissingAuthenticationStatus

      @Bindable(defaultValue="UNAUTHENTICATED") io.grpc.Status.Code getMissingAuthenticationStatus()
      Returns:
      The gRPC status returned when authentication is missing.
    • getFailedAuthorizationStatus

      @Bindable(defaultValue="PERMISSION_DENIED") io.grpc.Status.Code getFailedAuthorizationStatus()
      Returns:
      The gRPC status returned when authorization fails.
    • getInterceptMethodMap

      @Nullable @Nullable List<InterceptMethodMapPattern> getInterceptMethodMap()
      The gRPC authorization rules. Each entry has a pattern, a regular expression matched against the fully qualified gRPC method name (for example helloworld.Greeter/SayHello), and the access rules required to invoke matching methods. The first matching entry applies.

      These rules are separate from micronaut.security.intercept-url-map, which holds HTTP path patterns.

      Returns:
      The gRPC method authorization rules
      Since:
      5.3.0