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 Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptiondefault StringKey which will be used in theAuthentication.getAttributes()for the User`s name.default StringKey which will be used in theAuthentication.getAttributes()for the User`s roles.default StringSeparator which will be used for splitting the roles before processing theAuthentication.Methods inherited from interface io.micronaut.core.util.Toggleable
isEnabled 
- 
Field Details
- 
DEFAULT_ROLES_NAME
- See Also:
 
 - 
DEFAULT_NAME_KEY
- See Also:
 
 - 
DEFAULT_ROLES_SEPARATOR
 
 - 
 - 
Method Details
- 
getRolesName
Key which will be used in theAuthentication.getAttributes()for the User`s roles.- Returns:
 - The key used for the user's roles within the user's attributes. e.g. "roles".
 
 - 
getNameKey
Key which will be used in theAuthentication.getAttributes()for the User`s name.- Returns:
 - The key used for the user's name within the user's attributes. e.g. "sub".
 
 - 
getRolesSeparator
Separator which will be used for splitting the roles before processing theAuthentication.- Returns:
 - The separator used for splitting the users roles
 
 
 -