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
Constructors Constructor Description JWTRoleProvider(org.opencastproject.security.api.SecurityService securityService, org.opencastproject.userdirectory.api.UserReferenceProvider userReferenceProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<org.opencastproject.security.api.Role>findRoles(String query, org.opencastproject.security.api.Role.Target target, int offset, int limit)StringgetOrganization()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)
-
-
-
Method Detail
-
getRoles
public Iterator<org.opencastproject.security.api.Role> getRoles()
- Specified by:
getRolesin interfaceorg.opencastproject.userdirectory.api.AAIRoleProvider
-
getRolesForUser
public List<org.opencastproject.security.api.Role> getRolesForUser(String userName)
- Specified by:
getRolesForUserin interfaceorg.opencastproject.security.api.RoleProvider
-
getOrganization
public String 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
-
-