Package org.apache.zookeeper
Class Login
java.lang.Object
org.apache.zookeeper.Login
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLogin
(String loginContextName, CallbackHandler callbackHandler, ZKConfig zkConfig) LoginThread constructor. -
Method Summary
-
Field Details
-
SYSTEM_USER
-
callbackHandler
-
-
Constructor Details
-
Login
public Login(String loginContextName, CallbackHandler callbackHandler, ZKConfig zkConfig) throws LoginException LoginThread constructor. The constructor starts the thread used to periodically re-login to the Kerberos Ticket Granting Server.- Parameters:
loginContextName
- name of section in JAAS file that will be use to login. Passed as first param to javax.security.auth.login.LoginContext().callbackHandler
- Passed as second param to javax.security.auth.login.LoginContext().zkConfig
- client or server configurations- Throws:
LoginException
- Thrown if authentication fails.
-
-
Method Details
-
startThreadIfNeeded
public void startThreadIfNeeded() -
shutdown
public void shutdown() -
getSubject
-
getUserName
-
getLoginContextName
-