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() |
Optional<IdentityProvider> |
getByEntityId(String entityId) |
String |
getDisplayName()
Display name, e.g.
|
String |
getEmail() |
IdentityProvider |
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
InstitutionIdentityProvider's of the institution for this users. |
String |
getPassword()
It is not allowed to call this method
|
String |
getSchacHomeOrganization() |
IdentityProvider |
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(IdentityProvider idp) |
void |
setInstitutionId(String institutionId) |
void |
setSchacHomeOrganization(String schacHomeOrganization) |
void |
setSwitchedToIdp(IdentityProvider 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'sgetAuthorities 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<IdentityProvider> getInstitutionIdps()
InstitutionIdentityProvider's of the institution for this users.
Usually contains only the IdP the user logs in with.InstitutionIdentityProvider'spublic void addInstitutionIdp(IdentityProvider idp)
public String getInstitutionId()
public void setInstitutionId(String institutionId)
public IdentityProvider getIdp()
public void setIdp(IdentityProvider idp)
public IdentityProvider getSwitchedToIdp()
public void setSwitchedToIdp(IdentityProvider switchedToIdp)
public Map<String,List<String>> getAttributeMap()
public List<CoinAuthority.Authority> getAuthorityEnums()
public Optional<IdentityProvider> getByEntityId(String entityId)
Copyright © 2012–2016 Pivotal Software, Inc.. All rights reserved.