public class CrowdUserDetails extends Object implements org.springframework.security.core.userdetails.UserDetails
| Constructor and Description |
|---|
CrowdUserDetails(SOAPPrincipal principal,
Collection<org.springframework.security.core.GrantedAuthority> authorities) |
CrowdUserDetails(SOAPPrincipal principal,
org.springframework.security.core.GrantedAuthority[] authorities) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String attributeName) |
Collection<org.springframework.security.core.GrantedAuthority> |
getAuthorities()
Returns the authorities granted to the user.
|
String |
getEmail() |
String |
getFirstName() |
String |
getFullName() |
String |
getLastName() |
String |
getPassword()
Returns the password used to authenticate the user.
|
UserWithAttributes |
getRemotePrincipal()
Returns the remote principal that has authenticated.
|
String |
getUsername()
Returns the username used to authenticate the user.
|
boolean |
isAccountNonExpired()
Indicates whether the user's account has expired.
|
boolean |
isAccountNonLocked()
Indicates whether the user is locked or unlocked.
|
boolean |
isCredentialsNonExpired()
Indicates whether the user's credentials (password) has expired.
|
boolean |
isEnabled()
Indicates whether the user is enabled or disabled.
|
public CrowdUserDetails(SOAPPrincipal principal, org.springframework.security.core.GrantedAuthority[] authorities)
public CrowdUserDetails(SOAPPrincipal principal, Collection<org.springframework.security.core.GrantedAuthority> authorities)
public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
null.getAuthorities in interface org.springframework.security.core.userdetails.UserDetailsnull)public UserWithAttributes getRemotePrincipal()
public String getPassword()
null.getPassword in interface org.springframework.security.core.userdetails.UserDetailsnull). Always throws UnsupportedOperationException as we don't want to risk exposing the password of a user.public String getUsername()
null.getUsername in interface org.springframework.security.core.userdetails.UserDetailsnull)public boolean isAccountNonExpired()
isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetailstrue always.public boolean isAccountNonLocked()
isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetailstrue always.public boolean isCredentialsNonExpired()
isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetailstrue always.public boolean isEnabled()
isEnabled in interface org.springframework.security.core.userdetails.UserDetailstrue if the user is active, false otherwise.public String getFirstName()
public String getLastName()
public String getEmail()
public String getFullName()
Copyright © 2016 Atlassian. All Rights Reserved.