public class OwncloudUserDetails extends Object implements org.springframework.security.core.userdetails.UserDetails
UserDetails Specification of Spring Security.
An Instance of this Class will be returned by OwncloudUserDetailsService#loadUserByUsername(String).UserDetails,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
OwncloudUserDetails.OwncloudUserDetailsBuilder |
| Constructor and Description |
|---|
OwncloudUserDetails() |
OwncloudUserDetails(String username,
String password,
boolean enabled,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
String displayname,
String email,
Long quota) |
| Modifier and Type | Method and Description |
|---|---|
static OwncloudUserDetails.OwncloudUserDetailsBuilder |
builder() |
boolean |
equals(Object o) |
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities()
Granted Authorities of the authenticated User.
|
String |
getDisplayname()
Display Name of the authenticated User.
|
String |
getEmail()
Email of the authenticated User.
|
String |
getPassword() |
Long |
getQuota()
Quota of the User (in Bytes).
|
String |
getUsername()
Username of the authenticated User.
|
int |
hashCode() |
boolean |
isAccountNonExpired() |
boolean |
isAccountNonLocked() |
boolean |
isCredentialsNonExpired() |
boolean |
isEnabled()
State of the authenticated User (enabled/disabled)
|
void |
setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
Granted Authorities of the authenticated User.
|
void |
setDisplayname(String displayname)
Display Name of the authenticated User.
|
void |
setEmail(String email)
Email of the authenticated User.
|
void |
setEnabled(boolean enabled)
State of the authenticated User (enabled/disabled)
|
void |
setPassword(String password) |
void |
setQuota(Long quota)
Quota of the User (in Bytes).
|
void |
setUsername(String username)
Username of the authenticated User.
|
String |
toString() |
public OwncloudUserDetails(String username, String password, boolean enabled, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String displayname, String email, Long quota)
public OwncloudUserDetails()
public String getPassword()
getPassword in interface org.springframework.security.core.userdetails.UserDetailspublic void setPassword(String password)
public boolean isAccountNonExpired()
isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonLocked()
isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isCredentialsNonExpired()
isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic static OwncloudUserDetails.OwncloudUserDetailsBuilder builder()
public String getUsername()
getUsername in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isEnabled()
isEnabled in interface org.springframework.security.core.userdetails.UserDetailstrue) or disabled (false)public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.core.userdetails.UserDetailspublic String getDisplayname()
public String getEmail()
public Long getQuota()
public void setUsername(String username)
username - Username of the authenticated Userpublic void setEnabled(boolean enabled)
enabled - enable or disable the authenticated Userpublic void setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
authorities - granted Authorities of the authenticated Userpublic void setDisplayname(String displayname)
displayname - Display Name of the authenticated Userpublic void setEmail(String email)
email - Email of the authenticated Userpublic void setQuota(Long quota)
quota - Quota of the User (in Bytes)Copyright © 2016–2020 coolstuff.software. All rights reserved.