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(nl.surfnet.coin.csa.model.InstitutionIdentityProvider 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() |
com.google.common.base.Optional<nl.surfnet.coin.csa.model.InstitutionIdentityProvider> |
getByEntityId(String entityId) |
String |
getDisplayName()
Display name, e.g.
|
String |
getEmail() |
nl.surfnet.coin.csa.model.InstitutionIdentityProvider |
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<nl.surfnet.coin.csa.model.InstitutionIdentityProvider> |
getInstitutionIdps()
List of
InstitutionIdentityProvider's of the institution for this users. |
String |
getPassword()
It is not allowed to call this method
|
String |
getSchacHomeOrganization() |
nl.surfnet.coin.csa.model.InstitutionIdentityProvider |
getSwitchedToIdp() |
String |
getUid()
Unique identifier of the user, e.g.
|
String |
getUsername()
Same value as
getUid()
|
boolean |
hasAuthority(CoinAuthority grantedAuthority) |
boolean |
isAccountNonExpired() |
boolean |
isAccountNonLocked() |
boolean |
isCredentialsNonExpired() |
boolean |
isDashboardAdmin() |
boolean |
isDashboardViewer() |
boolean |
isEnabled() |
boolean |
isSuperUser() |
void |
removeAuthority(CoinAuthority grantedAuthority) |
void |
setAttributeMap(Map<String,List<String>> attributeMap) |
void |
setAuthorities(Set<CoinAuthority> grantedAuthorities) |
void |
setDisplayName(String displayName) |
void |
setEmail(String email) |
void |
setIdp(nl.surfnet.coin.csa.model.InstitutionIdentityProvider idp) |
void |
setInstitutionId(String institutionId) |
void |
setSchacHomeOrganization(String schacHomeOrganization) |
void |
setSwitchedToIdp(nl.surfnet.coin.csa.model.InstitutionIdentityProvider switchedToIdp) |
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 boolean isSuperUser()
public boolean isDashboardAdmin()
public boolean isDashboardViewer()
public 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(Set<CoinAuthority> grantedAuthorities)
public void addAuthority(CoinAuthority grantedAuthority)
public void removeAuthority(CoinAuthority grantedAuthority)
public boolean hasAuthority(CoinAuthority grantedAuthority)
public List<nl.surfnet.coin.csa.model.InstitutionIdentityProvider> getInstitutionIdps()
InstitutionIdentityProvider's of the institution for this users.
Usually contains only the IdP the user logs in with.InstitutionIdentityProvider'spublic void addInstitutionIdp(nl.surfnet.coin.csa.model.InstitutionIdentityProvider idp)
public String getInstitutionId()
public void setInstitutionId(String institutionId)
public nl.surfnet.coin.csa.model.InstitutionIdentityProvider getIdp()
public void setIdp(nl.surfnet.coin.csa.model.InstitutionIdentityProvider idp)
public nl.surfnet.coin.csa.model.InstitutionIdentityProvider getSwitchedToIdp()
public void setSwitchedToIdp(nl.surfnet.coin.csa.model.InstitutionIdentityProvider switchedToIdp)
public Map<String,List<String>> getAttributeMap()
public List<CoinAuthority.Authority> getAuthorityEnums()
public com.google.common.base.Optional<nl.surfnet.coin.csa.model.InstitutionIdentityProvider> getByEntityId(String entityId)
Copyright © 2012–2015 SURFnet bv, The Netherlands. All rights reserved.