Class EPersonRestAuthenticationProvider

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

    @Component
    public class EPersonRestAuthenticationProvider
    extends Object
    implements org.springframework.security.authentication.AuthenticationProvider
    This class is responsible for authenticating a user via REST
    Author:
    Frederic Van Reet (frederic dot vanreet at atmire dot com), Tom Desair (tom dot desair at atmire dot com)
    • Constructor Detail

      • EPersonRestAuthenticationProvider

        public EPersonRestAuthenticationProvider()
    • 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
      • getGrantedAuthorities

        public List<org.springframework.security.core.GrantedAuthority> getGrantedAuthorities​(org.dspace.core.Context context)
      • supports

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