Class DSpaceAuthentication

  • All Implemented Interfaces:
    Serializable, Principal, org.springframework.security.core.Authentication

    public class DSpaceAuthentication
    extends Object
    implements org.springframework.security.core.Authentication
    Custom Authentication for use with DSpace
    Author:
    Frederic Van Reet (frederic dot vanreet at atmire dot com), Tom Desair (tom dot desair at atmire dot com)
    See Also:
    Serialized Form
    • Constructor Detail

      • DSpaceAuthentication

        public DSpaceAuthentication​(org.dspace.eperson.EPerson ePerson,
                                    List<org.springframework.security.core.GrantedAuthority> authorities)
      • DSpaceAuthentication

        public DSpaceAuthentication​(String username,
                                    String password,
                                    List<org.springframework.security.core.GrantedAuthority> authorities)
      • DSpaceAuthentication

        public DSpaceAuthentication​(String username,
                                    List<org.springframework.security.core.GrantedAuthority> authorities)
    • Method Detail

      • getAuthorities

        public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
        Specified by:
        getAuthorities in interface org.springframework.security.core.Authentication
      • getCredentials

        public Object getCredentials()
        Specified by:
        getCredentials in interface org.springframework.security.core.Authentication
      • getDetails

        public Object getDetails()
        Specified by:
        getDetails in interface org.springframework.security.core.Authentication
      • getPrincipal

        public Object getPrincipal()
        Specified by:
        getPrincipal in interface org.springframework.security.core.Authentication
      • isAuthenticated

        public boolean isAuthenticated()
        Specified by:
        isAuthenticated in interface org.springframework.security.core.Authentication
      • getPreviousLoginDate

        public Date getPreviousLoginDate()