public interface KeytabUser
Modifier and Type | Method and Description |
---|---|
boolean |
checkTGTAndRelogin()
Performs a re-login if the TGT is close to expiration.
|
<T> T |
doAs(PrivilegedAction<T> action)
Executes the given action as the given user.
|
<T> T |
doAs(PrivilegedExceptionAction<T> action)
Executes the given action as the given user.
|
String |
getKeytabFile() |
String |
getPrincipal() |
boolean |
isLoggedIn() |
void |
login()
Performs a login for the given user.
|
void |
logout()
Performs a logout for the given user.
|
void login() throws LoginException
LoginException
- if the login failsvoid logout() throws LoginException
LoginException
- if the logout fails<T> T doAs(PrivilegedAction<T> action) throws IllegalStateException
T
- the type of responseaction
- the action to executeIllegalStateException
- if attempting to execute an action before performing a login<T> T doAs(PrivilegedExceptionAction<T> action) throws IllegalStateException, PrivilegedActionException
T
- the type of responseaction
- the action to executeIllegalStateException
- if attempting to execute an action before performing a loginPrivilegedActionException
- if the action itself threw an exceptionboolean checkTGTAndRelogin() throws LoginException
LoginException
- if the relogin failsboolean isLoggedIn()
String getPrincipal()
String getKeytabFile()
Copyright © 2018 Apache NiFi Project. All rights reserved.