Interface BearerTokenConfiguration

All Superinterfaces:
io.micronaut.core.util.Toggleable
All Known Implementing Classes:
BearerTokenConfigurationProperties

public interface BearerTokenConfiguration extends io.micronaut.core.util.Toggleable
Configuration for the BearerTokenReader.
Since:
1.0
Author:
Sergio del Amo
  • Method Details

    • isEnabled

      boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
      Returns:
      a boolean flag indicating whether BearerTokenReader bean should be enabled or not
    • getPrefix

      String getPrefix()
      Returns:
      a Prefix before the token in the header value. E.g. Bearer
    • getHeaderName

      String getHeaderName()
      Returns:
      an HTTP Header name. e.g. Authorization