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
public class ProfileUser extends CustomUser
- Since:
- 3.1.5
- Author:
- joseross
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.craftercms.security.authentication.Authentication
authentication
protected org.craftercms.profile.api.Profile
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
<T> T
getAttribute(String name)
Map<String,Object>
getAttributes()
org.craftercms.security.authentication.Authentication
getAuthentication()
org.craftercms.profile.api.Profile
getProfile()
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
-
-
-
-
Method Detail
-
getAuthentication
public org.craftercms.security.authentication.Authentication getAuthentication()
-
getProfile
public org.craftercms.profile.api.Profile getProfile()
-
getAttribute
public <T> T getAttribute(String name)
- Overrides:
getAttribute
in classCustomUser
-
setAttributes
public void setAttributes(Map<String,Object> attributes)
- Overrides:
setAttributes
in classCustomUser
-
setAttribute
public void setAttribute(String name, Object value)
- Overrides:
setAttribute
in classCustomUser
-
getAttributes
public Map<String,Object> getAttributes()
- Overrides:
getAttributes
in classCustomUser
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classCustomUser
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCustomUser
-
-