Interface LdaptiveUserDetails
- All Superinterfaces:
NormalizedPrincipal,Principal,Serializable,org.springframework.security.core.userdetails.UserDetails
@Immutable
public interface LdaptiveUserDetails
extends org.springframework.security.core.userdetails.UserDetails, NormalizedPrincipal
The ldaptive user details.
- Author:
- Christian Bremer
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe immutable builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic LdaptiveUserDetails.Builderbuilder()Gets builder.static @NonNull LdaptiveUserDetailsempty()Empty ldaptive user details.default @NonNull Collection<? extends org.springframework.security.core.GrantedAuthority> getDn()Gets the distinguished name.@Nullable StringgetEmail()Gets email.@Nullable StringGets first name.@Nullable StringGets last name.default StringgetName()@Nullable Stringdefault booleandefault booleandefault booleandefault boolean
-
Method Details
-
getDn
String getDn()Gets the distinguished name.- Returns:
- the distinguished name
-
getAuthorities
@Default default @NonNull Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()- Specified by:
getAuthoritiesin interfaceorg.springframework.security.core.userdetails.UserDetails
-
getPassword
@Nullable String getPassword()- Specified by:
getPasswordin interfaceorg.springframework.security.core.userdetails.UserDetails
-
getUsername
- Specified by:
getUsernamein interfaceorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonExpired
@Default default boolean isAccountNonExpired()- Specified by:
isAccountNonExpiredin interfaceorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonLocked
@Default default boolean isAccountNonLocked()- Specified by:
isAccountNonLockedin interfaceorg.springframework.security.core.userdetails.UserDetails
-
isCredentialsNonExpired
@Default default boolean isCredentialsNonExpired()- Specified by:
isCredentialsNonExpiredin interfaceorg.springframework.security.core.userdetails.UserDetails
-
isEnabled
@Default default boolean isEnabled()- Specified by:
isEnabledin interfaceorg.springframework.security.core.userdetails.UserDetails
-
getName
-
getFirstName
@Nullable String getFirstName()Description copied from interface:NormalizedPrincipalGets first name.- Specified by:
getFirstNamein interfaceNormalizedPrincipal- Returns:
- the first name
-
getLastName
@Nullable String getLastName()Description copied from interface:NormalizedPrincipalGets last name.- Specified by:
getLastNamein interfaceNormalizedPrincipal- Returns:
- the last name
-
getEmail
@Nullable String getEmail()Description copied from interface:NormalizedPrincipalGets email.- Specified by:
getEmailin interfaceNormalizedPrincipal- Returns:
- the email
-
empty
Empty ldaptive user details.- Returns:
- the ldaptive user details
-
builder
Gets builder.- Returns:
- the builder
-