Package org.tailormap.api.security
Interface TailormapUserDetails
- All Superinterfaces:
Serializable
,org.springframework.security.core.userdetails.UserDetails
- All Known Implementing Classes:
TailormapOidcUser
public interface TailormapUserDetails
extends Serializable, org.springframework.security.core.userdetails.UserDetails
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Returns true if any user or group Boolean property with the given key is true.Methods inherited from interface org.springframework.security.core.userdetails.UserDetails
getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled
-
Method Details
-
getAdditionalProperties
Collection<TailormapAdditionalProperty> getAdditionalProperties() -
getAdditionalGroupProperties
Collection<TailormapAdditionalProperty> getAdditionalGroupProperties() -
hasTruePropertyForKey
Returns true if any user or group Boolean property with the given key is true. If beside a true value, there are also properties with the same key but with any other value than true, the true value has precedence.- Parameters:
key
- the key to look for- Returns:
- true if a Boolean property with the key is present with a true value
-
streamAllPropertiesForKey
-
getOrganisation
String getOrganisation()
-