Interface GrpcSecurityMethodConfig

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
GrpcSecurityMethodConfig.BuilderBase.GrpcSecurityMethodConfigImpl

public interface GrpcSecurityMethodConfig extends Prototype.Api
Configuration of gRPC method security.
See Also:
  • Method Details

    • builder

      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static GrpcSecurityMethodConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • name

      String name()
      Bare gRPC method name such as Upper, not the full gRPC method path such as StringService/Upper.
      Returns:
      gRPC method name
    • rolesAllowed

      Set<String> rolesAllowed()
      An array of allowed roles for this gRPC method.
      Returns:
      if subject is any of these roles, allow access
    • authenticator

      Optional<String> authenticator()
      Use a named authenticator.
      Returns:
      name of authenticator as configured in Security
    • authorizer

      Optional<String> authorizer()
      Use a named authorizer.
      Returns:
      name of authorizer as configured in Security
    • authenticate

      Optional<Boolean> authenticate()
      Whether to authenticate this request.
      Returns:
      whether to authenticate
    • authenticationOptional

      Optional<Boolean> authenticationOptional()
      Whether authentication failure should continue as anonymous.
      Returns:
      whether authentication is optional
    • audit

      Optional<Boolean> audit()
      Whether to audit this request.
      Returns:
      whether to audit
    • authorize

      Optional<Boolean> authorize()
      Whether to authorize this request.
      Returns:
      whether to authorize
    • auditEventType

      Optional<String> auditEventType()
      Override for audit event type.
      Returns:
      audit event type
    • auditMessageFormat

      Optional<String> auditMessageFormat()
      Override for audit message format.
      Returns:
      audit message format
    • customObjects

      A store of custom objects, that can be used to customize specific security providers.
      Returns:
      custom objects
    • config

      Optional<Config> config()
      Configuration associated with this security handler.
      Returns:
      the configuration