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
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull String
Key which will be used in theAuthentication.getAttributes()
for the User`s name.default @NonNull String
Key which will be used in theAuthentication.getAttributes()
for the User`s roles.default @Nullable String
Separator 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
-