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
GrantedAuthority
.- See Also:
-
Constructor Summary
ConstructorDescriptionTokenIntrospectorRolesHelper
(RegisteredClientRoleAssignmentRepository clientRoleAssignmentRepository, RoleGrantedAuthorityUtils roleGrantedAuthorityUtils) -
Method Summary
Modifier and TypeMethodDescriptionList<org.springframework.security.core.GrantedAuthority>
getClientGrantedAuthorities
(String clientId) Converts a list of roles specified for the client in properties file into the list ofGrantedAuthority
.
-
Constructor Details
-
TokenIntrospectorRolesHelper
public TokenIntrospectorRolesHelper(RegisteredClientRoleAssignmentRepository clientRoleAssignmentRepository, RoleGrantedAuthorityUtils roleGrantedAuthorityUtils)
-
-
Method Details
-
getClientGrantedAuthorities
public List<org.springframework.security.core.GrantedAuthority> getClientGrantedAuthorities(String clientId) Converts a list of roles specified for the client in properties file into the list ofGrantedAuthority
.- Parameters:
clientId
- a client id- Returns:
- a list of RoleGrantedAuthority
-