Class DynamicLoginHandler

java.lang.Object
org.opencastproject.security.aai.DynamicLoginHandler
All Implemented Interfaces:
org.opencastproject.security.api.GroupProvider, org.opencastproject.security.api.RoleProvider, org.opencastproject.security.shibboleth.ShibbolethLoginHandler, org.opencastproject.userdirectory.api.AAIRoleProvider, org.springframework.beans.factory.InitializingBean

public class DynamicLoginHandler extends Object implements org.opencastproject.security.shibboleth.ShibbolethLoginHandler, org.opencastproject.userdirectory.api.AAIRoleProvider, org.opencastproject.security.api.GroupProvider, org.springframework.beans.factory.InitializingBean
Dynamic login with Shibboleth data through SpEL mappings
  • Constructor Details

    • DynamicLoginHandler

      public DynamicLoginHandler()
  • Method Details

    • newUserLogin

      public void newUserLogin(String id, javax.servlet.http.HttpServletRequest request)
      Handle a new user login.
      Specified by:
      newUserLogin in interface org.opencastproject.security.shibboleth.ShibbolethLoginHandler
      Parameters:
      id - The identity of the user, ideally the Shibboleth persistent unique identifier
      request - The request, for accessing any other Shibboleth variables
    • existingUserLogin

      public void existingUserLogin(String id, javax.servlet.http.HttpServletRequest request)
      Handle an existing user login.
      Specified by:
      existingUserLogin in interface org.opencastproject.security.shibboleth.ShibbolethLoginHandler
      Parameters:
      id - The identity of the user, ideally the Shibboleth persistent unique identifier
      request - The request, for accessing any other Shibboleth variables
    • setSecurityService

      public void setSecurityService(org.opencastproject.security.api.SecurityService securityService)
      Sets the security service.
      Parameters:
      securityService - the security service
    • setUserReferenceProvider

      public void setUserReferenceProvider(org.opencastproject.userdirectory.api.UserReferenceProvider userReferenceProvider)
      Sets the user reference provider.
      Parameters:
      userReferenceProvider - the user reference provider
    • getRoles

      public Iterator<org.opencastproject.security.api.Role> getRoles()
      Specified by:
      getRoles in interface org.opencastproject.userdirectory.api.AAIRoleProvider
      See Also:
      • AAIRoleProvider.getRoles()
    • getRolesForUser

      public List<org.opencastproject.security.api.Role> getRolesForUser(String userName)
      Specified by:
      getRolesForUser in interface org.opencastproject.security.api.RoleProvider
      See Also:
      • RoleProvider.getRolesForUser(String)
    • getOrganization

      public String getOrganization()
      Specified by:
      getOrganization in interface org.opencastproject.security.api.RoleProvider
      See Also:
      • RoleProvider.getOrganization()
    • findRoles

      public Iterator<org.opencastproject.security.api.Role> findRoles(String query, org.opencastproject.security.api.Role.Target target, int offset, int limit)
      Specified by:
      findRoles in interface org.opencastproject.security.api.RoleProvider
      See Also:
      • RoleProvider.findRoles(String, Role.Target, int, int)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getAttributeMapper

      public AttributeMapper getAttributeMapper()
    • setAttributeMapper

      public void setAttributeMapper(AttributeMapper attributeMapper)
    • getRolesForGroup

      public List<org.opencastproject.security.api.Role> getRolesForGroup(String groupName)
      Specified by:
      getRolesForGroup in interface org.opencastproject.security.api.GroupProvider