Package co.mastermindcms.common.security
Class UserPrincipal
- java.lang.Object
-
- co.mastermindcms.common.security.UserPrincipal
-
- All Implemented Interfaces:
java.io.Serializable
,org.springframework.security.core.userdetails.UserDetails
public class UserPrincipal extends java.lang.Object implements org.springframework.security.core.userdetails.UserDetails
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserPrincipal(User user, Profile profile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<? extends org.springframework.security.core.GrantedAuthority>
getAuthorities()
java.lang.String
getPassword()
Profile
getProfile()
User
getUser()
java.lang.String
getUsername()
boolean
isAccountNonExpired()
boolean
isAccountNonLocked()
boolean
isCredentialsNonExpired()
boolean
isEnabled()
-
-
-
Method Detail
-
getAuthorities
public java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
- Specified by:
getAuthorities
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getPassword
public java.lang.String getPassword()
- Specified by:
getPassword
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getUsername
public java.lang.String getUsername()
- Specified by:
getUsername
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonExpired
public boolean isAccountNonExpired()
- Specified by:
isAccountNonExpired
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonLocked
public boolean isAccountNonLocked()
- Specified by:
isAccountNonLocked
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isCredentialsNonExpired
public boolean isCredentialsNonExpired()
- Specified by:
isCredentialsNonExpired
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getUser
public User getUser()
-
getProfile
public Profile getProfile()
-
-