|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 | |
|---|---|
java.lang.String |
getAttribute(java.lang.String attributeName)
|
org.acegisecurity.GrantedAuthority[] |
getAuthorities()
Returns the authorities granted to the user. |
java.lang.String |
getEmail()
|
java.lang.String |
getFirstName()
|
java.lang.String |
getFullName()
Returns the principal's display name if it exists, otherwise returns the first name concatenated to the last name. |
java.lang.String |
getLastName()
|
java.lang.String |
getPassword()
Returns the password used to authenticate the user. |
SOAPPrincipal |
getRemotePrincipal()
|
java.lang.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.UserDetailsnull)public SOAPPrincipal getRemotePrincipal()
public java.lang.String getPassword()
null.
getPassword in interface org.acegisecurity.userdetails.UserDetailsnull). Always throws UnsupportedOperationException as we don't want to risk exposing the password of a user.public java.lang.String getUsername()
null.
getUsername in interface org.acegisecurity.userdetails.UserDetailsnull)public boolean isAccountNonExpired()
isAccountNonExpired in interface org.acegisecurity.userdetails.UserDetailstrue always.public boolean isAccountNonLocked()
isAccountNonLocked in interface org.acegisecurity.userdetails.UserDetailstrue always.public boolean isCredentialsNonExpired()
isCredentialsNonExpired in interface org.acegisecurity.userdetails.UserDetailstrue always.public boolean isEnabled()
isEnabled in interface org.acegisecurity.userdetails.UserDetailstrue if the user is active, false otherwise.public java.lang.String getFirstName()
public java.lang.String getLastName()
public java.lang.String getEmail()
public java.lang.String getAttribute(java.lang.String attributeName)
public java.lang.String getFullName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||