java.lang.Object
org.springframework.security.core.userdetails.User
org.craftercms.engine.util.spring.security.CustomUser
org.craftercms.engine.util.spring.security.profile.ProfileUser
All Implemented Interfaces:
Serializable, org.springframework.security.core.CredentialsContainer, org.springframework.security.core.userdetails.UserDetails
Direct Known Subclasses:
TargetingUser

public class ProfileUser extends CustomUser
Extension of CustomUser to wrap an Authentication or Profile instance
Since:
3.1.5
Author:
joseross
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.security.core.userdetails.User

    org.springframework.security.core.userdetails.User.UserBuilder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.craftercms.security.authentication.Authentication
     
    protected org.craftercms.profile.api.Profile
     

    Fields inherited from class org.craftercms.engine.util.spring.security.CustomUser

    attributes
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProfileUser(org.craftercms.profile.api.Profile profile)
     
    ProfileUser(org.craftercms.security.authentication.Authentication auth)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    <T> T
     
     
    org.craftercms.security.authentication.Authentication
     
    org.craftercms.profile.api.Profile
     
    int
     
    void
    setAttribute(String name, Object value)
     
    void
     

    Methods inherited from class org.craftercms.engine.util.spring.security.CustomUser

    toString

    Methods inherited from class org.springframework.security.core.userdetails.User

    builder, eraseCredentials, getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, withDefaultPasswordEncoder, withUserDetails, withUsername

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • authentication

      protected org.craftercms.security.authentication.Authentication authentication
    • profile

      protected org.craftercms.profile.api.Profile profile
  • Constructor Details

    • ProfileUser

      public ProfileUser(org.craftercms.security.authentication.Authentication auth)
    • ProfileUser

      public ProfileUser(org.craftercms.profile.api.Profile profile)
  • Method Details