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.
|
SOAPPrincipal |
getRemotePrincipal() |
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.UserDetails
null
)public SOAPPrincipal getRemotePrincipal()
public String getPassword()
null
.getPassword
in interface org.springframework.security.core.userdetails.UserDetails
null
). 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.UserDetails
null
)public boolean isAccountNonExpired()
isAccountNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
true
always.public boolean isAccountNonLocked()
isAccountNonLocked
in interface org.springframework.security.core.userdetails.UserDetails
true
always.public boolean isCredentialsNonExpired()
isCredentialsNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
true
always.public boolean isEnabled()
isEnabled
in interface org.springframework.security.core.userdetails.UserDetails
true
if the user is active, false
otherwise.public String getFirstName()
public String getLastName()
public String getEmail()
public String getFullName()
Copyright © 2013 Atlassian. All Rights Reserved.