|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.integration.springsecurity.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.springframework.security.GrantedAuthority[] authorities)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAttribute(java.lang.String attributeName)
|
org.springframework.security.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.springframework.security.GrantedAuthority[] authorities)
| Method Detail |
|---|
public org.springframework.security.GrantedAuthority[] getAuthorities()
null.
getAuthorities in interface org.springframework.security.userdetails.UserDetailsnull)public SOAPPrincipal getRemotePrincipal()
public java.lang.String getPassword()
null.
getPassword in interface org.springframework.security.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.springframework.security.userdetails.UserDetailsnull)public boolean isAccountNonExpired()
isAccountNonExpired in interface org.springframework.security.userdetails.UserDetailstrue always.public boolean isAccountNonLocked()
isAccountNonLocked in interface org.springframework.security.userdetails.UserDetailstrue always.public boolean isCredentialsNonExpired()
isCredentialsNonExpired in interface org.springframework.security.userdetails.UserDetailstrue always.public boolean isEnabled()
isEnabled in interface org.springframework.security.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 | |||||||||