public class AmbariProxiedUserDetailsImpl extends Object implements AmbariUserDetails
AmbariUserDetails
implementation that contains details
about the proxied user as well as the proxy user.
This data can be helpful with logging information about the user performing an action.
Constructor and Description |
---|
AmbariProxiedUserDetailsImpl(org.springframework.security.core.userdetails.UserDetails proxiedUserDetails,
AmbariProxyUserDetails proxyUserDetails) |
Modifier and Type | Method and Description |
---|---|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
String |
getPassword() |
AmbariProxyUserDetails |
getProxyUserDetails() |
Integer |
getUserId() |
String |
getUsername() |
boolean |
isAccountNonExpired() |
boolean |
isAccountNonLocked() |
boolean |
isCredentialsNonExpired() |
boolean |
isEnabled() |
public AmbariProxiedUserDetailsImpl(org.springframework.security.core.userdetails.UserDetails proxiedUserDetails, AmbariProxyUserDetails proxyUserDetails)
public Integer getUserId()
getUserId
in interface AmbariUserDetails
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities
in interface org.springframework.security.core.userdetails.UserDetails
public String getPassword()
getPassword
in interface org.springframework.security.core.userdetails.UserDetails
public String getUsername()
getUsername
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isAccountNonExpired()
isAccountNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isAccountNonLocked()
isAccountNonLocked
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isCredentialsNonExpired()
isCredentialsNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isEnabled()
isEnabled
in interface org.springframework.security.core.userdetails.UserDetails
public AmbariProxyUserDetails getProxyUserDetails()
Copyright © 2022 Apache Software Foundation. All rights reserved.