|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.integration.acegi.user.CrowdUserDetails
public class CrowdUserDetails
Implements a basic SOAPPrincipal wrapper for Crowd principals. All attributes on this object are obtained directly from the Crowd server.
Constructor Summary | |
---|---|
CrowdUserDetails(SOAPPrincipal principal,
org.acegisecurity.GrantedAuthority[] authorities)
|
Method Summary | |
---|---|
String |
getAttribute(String attributeName)
|
org.acegisecurity.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CrowdUserDetails(SOAPPrincipal principal, org.acegisecurity.GrantedAuthority[] authorities)
Method Detail |
---|
public org.acegisecurity.GrantedAuthority[] getAuthorities()
null
.
getAuthorities
in interface org.acegisecurity.userdetails.UserDetails
null
)public SOAPPrincipal getRemotePrincipal()
public String getPassword()
null
.
getPassword
in interface org.acegisecurity.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.acegisecurity.userdetails.UserDetails
null
)public boolean isAccountNonExpired()
isAccountNonExpired
in interface org.acegisecurity.userdetails.UserDetails
true
always.public boolean isAccountNonLocked()
isAccountNonLocked
in interface org.acegisecurity.userdetails.UserDetails
true
always.public boolean isCredentialsNonExpired()
isCredentialsNonExpired
in interface org.acegisecurity.userdetails.UserDetails
true
always.public boolean isEnabled()
isEnabled
in interface org.acegisecurity.userdetails.UserDetails
true
if the user is active, false
otherwise.public String getFirstName()
public String getLastName()
public String getEmail()
public String getFullName()
public String getAttribute(String attributeName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |