Package org.opencastproject.security.jwt
Class JWTRoleProvider
java.lang.Object
org.opencastproject.security.jwt.JWTRoleProvider
- All Implemented Interfaces:
org.opencastproject.security.api.GroupProvider,org.opencastproject.security.api.RoleProvider,org.opencastproject.userdirectory.api.AAIRoleProvider
public class JWTRoleProvider
extends Object
implements org.opencastproject.userdirectory.api.AAIRoleProvider, org.opencastproject.security.api.GroupProvider
Role provider for users authenticated based on JWTs.
-
Constructor Summary
ConstructorsConstructorDescriptionJWTRoleProvider(org.opencastproject.security.api.SecurityService securityService, org.opencastproject.userdirectory.api.UserReferenceProvider userReferenceProvider) -
Method Summary
Modifier and TypeMethodDescriptionIterator<org.opencastproject.security.api.Role> Iterator<org.opencastproject.security.api.Role> getRoles()List<org.opencastproject.security.api.Role> getRolesForGroup(String groupName) List<org.opencastproject.security.api.Role> getRolesForUser(String userName)
-
Constructor Details
-
JWTRoleProvider
public JWTRoleProvider(org.opencastproject.security.api.SecurityService securityService, org.opencastproject.userdirectory.api.UserReferenceProvider userReferenceProvider)
-
-
Method Details
-
getRoles
- Specified by:
getRolesin interfaceorg.opencastproject.userdirectory.api.AAIRoleProvider
-
getRolesForUser
- Specified by:
getRolesForUserin interfaceorg.opencastproject.security.api.RoleProvider
-
getOrganization
- Specified by:
getOrganizationin interfaceorg.opencastproject.security.api.RoleProvider
-
findRoles
public Iterator<org.opencastproject.security.api.Role> findRoles(String query, org.opencastproject.security.api.Role.Target target, int offset, int limit) - Specified by:
findRolesin interfaceorg.opencastproject.security.api.RoleProvider
-
getRolesForGroup
- Specified by:
getRolesForGroupin interfaceorg.opencastproject.security.api.GroupProvider
-