public interface KerberosUser
| 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.
|
default <T> T |
doAs(PrivilegedAction<T> action,
ClassLoader contextClassLoader)
Executes the given action as the given user.
|
<T> T |
doAs(PrivilegedExceptionAction<T> action)
Executes the given action as the given user.
|
default <T> T |
doAs(PrivilegedExceptionAction<T> action,
ClassLoader contextClassLoader)
Executes the given action as the given user.
|
AppConfigurationEntry |
getConfigurationEntry() |
String |
getPrincipal() |
boolean |
isLoggedIn() |
void |
login()
Performs a login for the given user.
|
void |
logout()
Performs a logout for the given user.
|
void login()
KerberosLoginException - if the login failsvoid logout()
KerberosLoginException - 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 logindefault <T> T doAs(PrivilegedAction<T> action, ClassLoader contextClassLoader) throws IllegalStateException
T - the type of responseaction - the action to executecontextClassLoader - the class loader to set as the current thread's context class loaderIllegalStateException - 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 exceptiondefault <T> T doAs(PrivilegedExceptionAction<T> action, ClassLoader contextClassLoader) throws IllegalStateException, PrivilegedActionException
T - the type of responseaction - the action to executecontextClassLoader - the class loader to set as the current thread's context class loaderIllegalStateException - if attempting to execute an action before performing a loginPrivilegedActionException - if the action itself threw an exceptionboolean checkTGTAndRelogin()
KerberosLoginException - if the relogin failsboolean isLoggedIn()
String getPrincipal()
AppConfigurationEntry getConfigurationEntry()
Copyright © 2023 Apache NiFi Project. All rights reserved.