Class SpringSecurityUser

  • All Implemented Interfaces:
    Serializable, org.springframework.security.core.userdetails.UserDetails

    public class SpringSecurityUser
    extends Object
    implements org.springframework.security.core.userdetails.UserDetails
    Wrapper class for the OnmsUser object that implements Spring's UserDetails interface.
    Author:
    jwhite
    See Also:
    Serialized Form
    • Constructor Detail

      • SpringSecurityUser

        public SpringSecurityUser​(OnmsUser user)
    • Method Detail

      • getUsername

        public String getUsername()
        Specified by:
        getUsername in interface org.springframework.security.core.userdetails.UserDetails
      • getPassword

        public String getPassword()
        Specified by:
        getPassword in interface org.springframework.security.core.userdetails.UserDetails
      • getFullName

        public String getFullName()
      • getComments

        public String getComments()
      • setAuthorities

        public void setAuthorities​(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
      • addAuthority

        public void addAuthority​(org.springframework.security.core.GrantedAuthority authority)
      • getAuthorities

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

        public boolean isAccountNonExpired()
        Specified by:
        isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetails
      • isAccountNonLocked

        public boolean isAccountNonLocked()
        Specified by:
        isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetails
      • isCredentialsNonExpired

        public boolean isCredentialsNonExpired()
        Specified by:
        isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetails
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface org.springframework.security.core.userdetails.UserDetails
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object