Interface TokenConfiguration

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

public interface TokenConfiguration extends io.micronaut.core.util.Toggleable
Defines Security Token Configuration.
Since:
1.0
Author:
Sergio del Amo
  • Field Details

  • Method Details

    • getRolesName

      @NonNull default @NonNull String getRolesName()
      Key which will be used in the Authentication.getAttributes() for the User`s roles.
      Returns:
      The key used for the user's roles within the user's attributes. e.g. "roles".
    • getNameKey

      @NonNull default @NonNull String getNameKey()
      Key which will be used in the Authentication.getAttributes() for the User`s name.
      Returns:
      The key used for the user's name within the user's attributes. e.g. "sub".
    • getRolesSeparator

      @Nullable default @Nullable String getRolesSeparator()
      Separator which will be used for splitting the roles before processing the Authentication.
      Returns:
      The separator used for splitting the users roles