Class DefaultRoleUserDetailsServiceDecorator.DefaultRoleUserDetailsProxy

  • All Implemented Interfaces:
    Enclosing class:

    public static class DefaultRoleUserDetailsServiceDecorator.DefaultRoleUserDetailsProxy
    extends Object
    A UserDetails that has an extra role. The extra role is added to the end of the original role list and only if it is not already in the original role list.
    See Also:
    Serialized Form
    • Constructor Detail

      • DefaultRoleUserDetailsProxy

        public DefaultRoleUserDetailsProxy​( userDetails,
      • DefaultRoleUserDetailsProxy

        public DefaultRoleUserDetailsProxy​( userDetails,
    • Method Detail

      • getNewRoles

        protected Collection<? extends> getNewRoles​( defaultRole)
        Since UserDetails is immutable, we can safely pre-calculate the new roles.
      • getAuthorities

        public Collection<? extends> getAuthorities()
        Specified by:
        getAuthorities in interface
      • getPassword

        public String getPassword()
        Specified by:
        getPassword in interface
      • getUsername

        public String getUsername()
        Specified by:
        getUsername in interface
      • isAccountNonExpired

        public boolean isAccountNonExpired()
        Specified by:
        isAccountNonExpired in interface
      • isAccountNonLocked

        public boolean isAccountNonLocked()
        Specified by:
        isAccountNonLocked in interface
      • isCredentialsNonExpired

        public boolean isCredentialsNonExpired()
        Specified by:
        isCredentialsNonExpired in interface
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface