public class AutoTGTKrb5LoginModule extends Object implements LoginModule
Custom LoginModule to enable Auto Login based on cached ticket.
| Modifier and Type | Field and Description |
|---|---|
protected KerberosTicket |
kerbTicket |
| Constructor and Description |
|---|
AutoTGTKrb5LoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort() |
boolean |
commit() |
protected Principal |
getKerbTicketClient() |
protected void |
getKerbTicketFromCache() |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
boolean |
logout() |
protected KerberosTicket kerbTicket
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModulepublic boolean login()
throws LoginException
login in interface LoginModuleLoginExceptionprotected void getKerbTicketFromCache()
protected Principal getKerbTicketClient()
public boolean commit()
throws LoginException
commit in interface LoginModuleLoginExceptionpublic boolean abort()
throws LoginException
abort in interface LoginModuleLoginExceptionpublic boolean logout()
throws LoginException
logout in interface LoginModuleLoginExceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.