public class CrowdUserDetailsMock extends Object implements ICrowdUserDetails
Constructor and Description |
---|
CrowdUserDetailsMock()
Constructor for CrowdUserDetailsMock.
|
Modifier and Type | Method and Description |
---|---|
Collection<org.springframework.security.core.GrantedAuthority> |
getAuthorities()
Getter for the field
authorities . |
String |
getEmail()
Getter for the field
email . |
String |
getFirstName()
Getter for the field
firstName . |
String |
getFullName()
getFullName.
|
String |
getLastName()
Getter for the field
lastName . |
String |
getPassword()
Getter for the field
password . |
String |
getUsername()
Getter for the field
username . |
boolean |
isAccountNonExpired()
isAccountNonExpired.
|
boolean |
isAccountNonLocked()
isAccountNonLocked.
|
boolean |
isCredentialsNonExpired()
isCredentialsNonExpired.
|
boolean |
isEnabled()
isEnabled.
|
void |
setAccountNonExpired(boolean accountNonExpired)
Setter for the field
accountNonExpired . |
void |
setAccountNonLocked(boolean accountNonLocked)
Setter for the field
accountNonLocked . |
void |
setAuthorities(Collection<org.springframework.security.core.GrantedAuthority> authorities)
Setter for the field
authorities . |
void |
setCredentialsNonExpired(boolean credentialsNonExpired)
Setter for the field
credentialsNonExpired . |
void |
setEmail(String email)
Setter for the field
email . |
void |
setEnabled(boolean enabled)
Setter for the field
enabled . |
void |
setFirstName(String firstName)
Setter for the field
firstName . |
void |
setLastName(String lastName)
Setter for the field
lastName . |
void |
setPassword(String password)
Setter for the field
password . |
void |
setUsername(String username)
Setter for the field
username . |
public CrowdUserDetailsMock()
Constructor for CrowdUserDetailsMock.
public String getUsername()
Getter for the field username
.
getUsername
in interface org.springframework.security.core.userdetails.UserDetails
String
object.public void setUsername(String username)
Setter for the field username
.
username
- a String
object.public String getPassword()
Getter for the field password
.
getPassword
in interface org.springframework.security.core.userdetails.UserDetails
String
object.public void setPassword(String password)
Setter for the field password
.
password
- a String
object.public String getFirstName()
Getter for the field firstName
.
getFirstName
in interface ICrowdUserDetails
String
object.public void setFirstName(String firstName)
Setter for the field firstName
.
firstName
- a String
object.public String getLastName()
Getter for the field lastName
.
getLastName
in interface ICrowdUserDetails
String
object.public void setLastName(String lastName)
Setter for the field lastName
.
lastName
- a String
object.public String getEmail()
Getter for the field email
.
getEmail
in interface ICrowdUserDetails
String
object.public void setEmail(String email)
Setter for the field email
.
email
- a String
object.public boolean isAccountNonExpired()
isAccountNonExpired.
isAccountNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
public void setAccountNonExpired(boolean accountNonExpired)
Setter for the field accountNonExpired
.
accountNonExpired
- a boolean.public boolean isAccountNonLocked()
isAccountNonLocked.
isAccountNonLocked
in interface org.springframework.security.core.userdetails.UserDetails
public void setAccountNonLocked(boolean accountNonLocked)
Setter for the field accountNonLocked
.
accountNonLocked
- a boolean.public boolean isCredentialsNonExpired()
isCredentialsNonExpired.
isCredentialsNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
public void setCredentialsNonExpired(boolean credentialsNonExpired)
Setter for the field credentialsNonExpired
.
credentialsNonExpired
- a boolean.public boolean isEnabled()
isEnabled.
isEnabled
in interface org.springframework.security.core.userdetails.UserDetails
public void setEnabled(boolean enabled)
Setter for the field enabled
.
enabled
- a boolean.public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
Getter for the field authorities
.
getAuthorities
in interface org.springframework.security.core.userdetails.UserDetails
Collection
object.public void setAuthorities(Collection<org.springframework.security.core.GrantedAuthority> authorities)
Setter for the field authorities
.
authorities
- a Collection
object.public String getFullName()
getFullName.
getFullName
in interface ICrowdUserDetails
String
object.Copyright © 2011–2016 eXo Platform SAS. All rights reserved.