Class UserRoleDecoderDflt
java.lang.Object
de.fraunhofer.iosb.ilt.frostserver.auth.keycloak.UserRoleDecoderDflt
- All Implemented Interfaces:
UserRoleDecoder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecodeUserRoles(String username, Set<String> roles, org.jooq.DSLContext dslContext) Decode the given role for the user with the given name.voidinit(CoreSettings coreSettings) Initialise the role decoder.
-
Constructor Details
-
UserRoleDecoderDflt
public UserRoleDecoderDflt()
-
-
Method Details
-
init
Description copied from interface:UserRoleDecoderInitialise the role decoder.- Specified by:
initin interfaceUserRoleDecoder- Parameters:
coreSettings- The CoreSettings to load setting from.
-
decodeUserRoles
Description copied from interface:UserRoleDecoderDecode the given role for the user with the given name. Use the given DSLContext for any database access.- Specified by:
decodeUserRolesin interfaceUserRoleDecoder- Parameters:
username- The name of the user the role belongs to.roles- The roles to decode for the user.dslContext- The DSL Context for database access.
-