Class DSpaceAuthenticationProvider

  • All Implemented Interfaces:
    org.springframework.security.authentication.AuthenticationProvider

    public class DSpaceAuthenticationProvider
    extends Object
    implements org.springframework.security.authentication.AuthenticationProvider
    The core authentication & authorization provider, this provider is called when logging in & will process
    Author:
    Roeland Dillen (roeland at atmire dot com), kevinvandevelde at atmire.com FIXME This provider handles both the authorization as well as the authentication, due to the way that the DSpace authentication is implemented there is currently no other way to do this.
    • Constructor Detail

      • DSpaceAuthenticationProvider

        public DSpaceAuthenticationProvider()
    • Method Detail

      • authenticate

        public org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)
                                                                      throws org.springframework.security.core.AuthenticationException
        Specified by:
        authenticate in interface org.springframework.security.authentication.AuthenticationProvider
        Throws:
        org.springframework.security.core.AuthenticationException
      • addSpecialGroupsToGrantedAuthorityList

        protected void addSpecialGroupsToGrantedAuthorityList​(Context context,
                                                              javax.servlet.http.HttpServletRequest httpServletRequest,
                                                              List<org.springframework.security.core.authority.SimpleGrantedAuthority> grantedAuthorities)
                                                       throws SQLException
        Throws:
        SQLException
      • supports

        public boolean supports​(Class<?> authentication)
        Specified by:
        supports in interface org.springframework.security.authentication.AuthenticationProvider