pub struct UserGroupInformation { /* private fields */ }
Expand description
User and group information for Hadoop. This class provides methods to determine the user’s username and groups. It supports both the Windows, Unix and Kerberos login modules.
Implementations§
Source§impl UserGroupInformation
impl UserGroupInformation
Sourcepub fn get_current_user() -> Result<Self>
pub fn get_current_user() -> Result<Self>
Return the current user, including any doAs in the current stack.
Sourcepub fn get_login_user() -> Result<Self>
pub fn get_login_user() -> Result<Self>
Get the currently logged in user. If no explicit login has occurred, the user will automatically be logged in with either kerberos credentials if available, or as the local OS user, based on security settings.
Sourcepub fn create_proxy_user(_user: &str, real_user: &Self) -> Self
pub fn create_proxy_user(_user: &str, real_user: &Self) -> Self
Create a proxy user using username of the effective user and the ugi of the real user.
Sourcepub fn get_short_user_name(&self) -> String
pub fn get_short_user_name(&self) -> String
Get the user’s login name.
Sourcepub fn get_user_name(&self) -> String
pub fn get_user_name(&self) -> String
Get the user’s full principal name.
Trait Implementations§
Source§impl Clone for UserGroupInformation
impl Clone for UserGroupInformation
Source§fn clone(&self) -> UserGroupInformation
fn clone(&self) -> UserGroupInformation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for UserGroupInformation
Auto Trait Implementations§
impl Freeze for UserGroupInformation
impl RefUnwindSafe for UserGroupInformation
impl Send for UserGroupInformation
impl Sync for UserGroupInformation
impl Unpin for UserGroupInformation
impl UnwindSafe for UserGroupInformation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more