Class ProfileUser
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
- 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
Modifier and TypeFieldDescriptionprotected 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
ConstructorDescriptionProfileUser
(org.craftercms.profile.api.Profile profile) ProfileUser
(org.craftercms.security.authentication.Authentication auth) -
Method Summary
Modifier and TypeMethodDescriptionboolean
<T> T
getAttribute
(String name) org.craftercms.security.authentication.Authentication
org.craftercms.profile.api.Profile
int
hashCode()
void
setAttribute
(String name, Object value) void
setAttributes
(Map<String, Object> attributes) 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
-
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
-
getAuthentication
public org.craftercms.security.authentication.Authentication getAuthentication() -
getProfile
public org.craftercms.profile.api.Profile getProfile() -
getAttribute
- Overrides:
getAttribute
in classCustomUser
-
setAttributes
- Overrides:
setAttributes
in classCustomUser
-
setAttribute
- Overrides:
setAttribute
in classCustomUser
-
getAttributes
- Overrides:
getAttributes
in classCustomUser
-
equals
- Overrides:
equals
in classCustomUser
-
hashCode
public int hashCode()- Overrides:
hashCode
in classCustomUser
-