public class CoinUser extends Object implements org.springframework.security.core.userdetails.UserDetails
| Constructor and Description |
|---|
CoinUser() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String key,
List<String> value) |
void |
addAuthority(CoinAuthority grantedAuthority) |
void |
addInstitutionIdp(IdentityProvider idp) |
Map<String,List<String>> |
getAttributeMap()
Map of user attributes, key as String, value Object
|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities()
Returns a collection that will contain
CoinAuthority's
|
List<CoinAuthority.Authority> |
getAuthorityEnums() |
String |
getDisplayName()
Display name, e.g.
|
String |
getEmail() |
String |
getIdp()
Identifier of the IdentityProvider the user has logged in with
|
String |
getInstitutionId()
Identifier of the institution the IdentityProvider of the user belongs to.
|
List<IdentityProvider> |
getInstitutionIdps()
List of
IdentityProvider's of the institution for this users. |
String |
getPassword()
It is not allowed to call this method
|
String |
getSchacHomeOrganization() |
String |
getUid()
Unique identifier of the user, e.g.
|
String |
getUsername()
Same value as
getUid()
|
boolean |
isAccountNonExpired() |
boolean |
isAccountNonLocked() |
boolean |
isCredentialsNonExpired() |
boolean |
isEnabled() |
void |
removeUserAuthority() |
void |
setAttributeMap(Map<String,List<String>> attributeMap) |
void |
setAuthorities(List<CoinAuthority> grantedAuthorities) |
void |
setDisplayName(String displayName) |
void |
setEmail(String email) |
void |
setIdp(String idp) |
void |
setInstitutionId(String institutionId) |
void |
setSchacHomeOrganization(String schacHomeOrganization) |
void |
setUid(String uid) |
String |
toString() |
public String getPassword()
getPassword in interface org.springframework.security.core.userdetails.UserDetailspublic String getUsername()
getUid()
getUsername in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonExpired()
isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonLocked()
isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isCredentialsNonExpired()
isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isEnabled()
isEnabled in interface org.springframework.security.core.userdetails.UserDetailspublic String getUid()
public void setUid(String uid)
public String getDisplayName()
public void setDisplayName(String displayName)
public String getSchacHomeOrganization()
public void setSchacHomeOrganization(String schacHomeOrganization)
public String getEmail()
public void setEmail(String email)
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
CoinAuthority's
getAuthorities in interface org.springframework.security.core.userdetails.UserDetailspublic void setAuthorities(List<CoinAuthority> grantedAuthorities)
public void addAuthority(CoinAuthority grantedAuthority)
public void removeUserAuthority()
public List<IdentityProvider> getInstitutionIdps()
IdentityProvider's of the institution for this users.
Usually contains only the IdP the user logs in with.IdentityProvider'spublic void addInstitutionIdp(IdentityProvider idp)
public String getInstitutionId()
public void setInstitutionId(String institutionId)
public String getIdp()
public void setIdp(String idp)
public Map<String,List<String>> getAttributeMap()
public List<CoinAuthority.Authority> getAuthorityEnums()
Copyright © 2012 SURFnet bv, The Netherlands. All Rights Reserved.