public class Login extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LOGIN_CONTEXT_NAME_KEY
Sasl config string for HBase
|
Modifier and Type | Method and Description |
---|---|
Subject |
getSubject() |
static void |
initUserIfNeeded(Config config,
org.jboss.netty.util.HashedWheelTimer timer,
String login_context_name,
CallbackHandler callback_handler)
Attempts to set the singleton and authenticate using the given context and
callback.
|
public static final String LOGIN_CONTEXT_NAME_KEY
public static void initUserIfNeeded(Config config, org.jboss.netty.util.HashedWheelTimer timer, String login_context_name, CallbackHandler callback_handler) throws LoginException
config
- The AsyncHBase config to load settings fromtimer
- A timer to use for renewing ticketslogin_context_name
- Name of section in JAAS file that will be use to login.
Passed as first param to javax.security.auth.login.LoginContext().callback_handler
- The callback to return results to.
Passed as second param to javax.security.auth.login.LoginContext().LoginException
- If login failedpublic Subject getSubject()
Copyright © 2010-2017, The Async HBase Authors