Class AuthenticationSuccessHandler

java.lang.Object
org.opencastproject.kernel.security.AuthenticationSuccessHandler
All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationSuccessHandler

public class AuthenticationSuccessHandler extends Object implements org.springframework.security.web.authentication.AuthenticationSuccessHandler
Sends authenticated users to one of the configured welcome pages after login.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The root resource
    static final String
    The wildcard role matcher for welcome pages
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
    void
    setSecurityService(org.opencastproject.security.api.SecurityService securityService)
    Sets the security service
    void
    Sets the welcome pages mapping.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.security.web.authentication.AuthenticationSuccessHandler

    onAuthenticationSuccess
  • Field Details

  • Constructor Details

    • AuthenticationSuccessHandler

      public AuthenticationSuccessHandler()
  • Method Details

    • onAuthenticationSuccess

      public void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException
      Specified by:
      onAuthenticationSuccess in interface org.springframework.security.web.authentication.AuthenticationSuccessHandler
      Throws:
      IOException
      See Also:
      • AuthenticationSuccessHandler.onAuthenticationSuccess(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.springframework.security.core.Authentication)
    • setSecurityService

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

      public void setWelcomePages(Map<String,String> welcomePages)
      Sets the welcome pages mapping.
      Parameters:
      welcomePages - the welcomePages to set