Package io.jmix.authserver.introspection
Class TokenIntrospectorRolesHelper
java.lang.Object
io.jmix.authserver.introspection.TokenIntrospectorRolesHelper
@Component("authsr_TokenIntrospectorRolesHelper")
public class TokenIntrospectorRolesHelper
extends Object
The class is used for converting a list of role codes specified for the client in properties file into the list of
RoleGrantedAuthority
.- See Also:
-
Constructor Summary
ConstructorDescriptionTokenIntrospectorRolesHelper
(ResourceRoleRepository resourceRoleRepository, RowLevelRoleRepository rowLevelRoleRepository, RegisteredClientRoleAssignmentRepository clientRoleAssignmentRepository) -
Method Summary
Modifier and TypeMethodDescriptiongetClientGrantedAuthorities
(String clientId) Converts a list of roles specified for the client in properties file into the list ofRoleGrantedAuthority
.
-
Constructor Details
-
TokenIntrospectorRolesHelper
public TokenIntrospectorRolesHelper(ResourceRoleRepository resourceRoleRepository, RowLevelRoleRepository rowLevelRoleRepository, RegisteredClientRoleAssignmentRepository clientRoleAssignmentRepository)
-
-
Method Details
-
getClientGrantedAuthorities
Converts a list of roles specified for the client in properties file into the list ofRoleGrantedAuthority
.- Parameters:
clientId
- a client id- Returns:
- a list of RoleGrantedAuthority
-