public class AmbariUserDetailsImpl extends Object implements AmbariUserDetails
AmbariUserDetails
Ideally instances of this class are used as the value returned by Authentication.getPrincipal()
| Constructor and Description |
|---|
AmbariUserDetailsImpl(User user,
String password,
Collection<? extends org.springframework.security.core.GrantedAuthority> grantedAuthorities) |
| Modifier and Type | Method and Description |
|---|---|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
String |
getPassword() |
Integer |
getUserId() |
String |
getUsername() |
boolean |
isAccountNonExpired() |
boolean |
isAccountNonLocked() |
boolean |
isCredentialsNonExpired() |
boolean |
isEnabled() |
public AmbariUserDetailsImpl(User user, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> grantedAuthorities)
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.core.userdetails.UserDetailspublic String getPassword()
getPassword in interface org.springframework.security.core.userdetails.UserDetailspublic String getUsername()
getUsername in interface org.springframework.security.core.userdetails.UserDetailspublic Integer getUserId()
getUserId in interface AmbariUserDetailspublic 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.UserDetailsCopyright © 2022 Apache Software Foundation. All rights reserved.