Class CasUserDetails
- java.lang.Object
-
- com.logicaldoc.enterprise.security.cas.CasUserDetails
-
- All Implemented Interfaces:
Serializable
,org.springframework.security.core.userdetails.UserDetails
public class CasUserDetails extends Object implements org.springframework.security.core.userdetails.UserDetails
A wrapper around the cas User.- Since:
- 8.1
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CasUserDetails(org.springframework.security.core.userdetails.UserDetails wrappedInstance, com.logicaldoc.core.security.User user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends org.springframework.security.core.GrantedAuthority>
getAuthorities()
String
getPassword()
com.logicaldoc.core.security.User
getUser()
String
getUsername()
boolean
isAccountNonExpired()
boolean
isAccountNonLocked()
boolean
isCredentialsNonExpired()
boolean
isEnabled()
void
setUser(com.logicaldoc.core.security.User user)
-
-
-
Method Detail
-
getUser
public com.logicaldoc.core.security.User getUser()
-
setUser
public void setUser(com.logicaldoc.core.security.User user)
-
getAuthorities
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
- Specified by:
getAuthorities
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getUsername
public 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
-
-