public class Login extends Object
Modifier and Type | Field and Description |
---|---|
CallbackHandler |
callbackHandler |
Constructor and Description |
---|
Login(String loginContextName,
CallbackHandler callbackHandler,
String jaasConfFile)
Login constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getLoginContextName() |
Subject |
getSubject() |
void |
shutdown() |
void |
startThreadIfNeeded() |
public CallbackHandler callbackHandler
public Login(String loginContextName, CallbackHandler callbackHandler, String jaasConfFile) throws LoginException
Login constructor. The constructor starts the thread used to periodically re-login to the Kerberos Ticket Granting Server.
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().LoginException
- Thrown if authentication fails.Copyright © 2022 The Apache Software Foundation. All rights reserved.