Class UserSecurityDetails

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

    public class UserSecurityDetails
    extends java.lang.Object
    implements org.springframework.security.core.userdetails.UserDetails
    Entity class for storing information about authenticated user UserDetails including userId
    See Also:
    Serialized Form
    • Constructor Detail

      • UserSecurityDetails

        public UserSecurityDetails​(java.lang.String password,
                                   java.lang.String email,
                                   long userId,
                                   java.util.List<? extends org.springframework.security.core.GrantedAuthority> grantedAuthorities)
      • UserSecurityDetails

        public UserSecurityDetails()
    • Method Detail

      • getPassword

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

        public void setUsername​(java.lang.String email)
      • getUsername

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

        public long getUserId()
      • setGrantedAuthorities

        public void setGrantedAuthorities​(java.util.List<? extends org.springframework.security.core.GrantedAuthority> grantedAuthorities)
      • getAuthorities

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

        public void setAccountNonExpired​(boolean isAccountNonExpired)
      • isAccountNonExpired

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

        public void setAccountNonLocked​(boolean isAccountNonLocked)
      • isAccountNonLocked

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

        public void setCredentialsNonExpired​(boolean isCredentialsNonExpired)
      • isCredentialsNonExpired

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

        public void setEnabled​(boolean isEnabled)
      • isEnabled

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