public class KerberosConnection extends Object
Modifier and Type | Field and Description |
---|---|
static float |
PERCENT_OF_LIFETIME_TO_RENEW
The percentage of the Kerberos ticket's lifetime which we should start trying to renew it
|
static long |
RENEWAL_PERIOD
How long should we sleep between checks to renew the Kerberos ticket
|
Constructor and Description |
---|
KerberosConnection(String principal,
File keytab)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
static String |
getKrb5LoginModuleName()
Returns the KRB5 LoginModule implementation.
|
Subject |
getSubject() |
static boolean |
isIbmJava()
Returns whether or not the current environment is IBM Java.
|
void |
login()
Perform a Kerberos login and launch a daemon thread to periodically perfrom renewals of that
Kerberos login.
|
void |
stopRenewalThread()
Stops the Kerberos renewal thread if it is still running.
|
public static final float PERCENT_OF_LIFETIME_TO_RENEW
public static final long RENEWAL_PERIOD
public Subject getSubject()
public void login()
RuntimeException
- If the Kerberos login failspublic void stopRenewalThread()
public static boolean isIbmJava()
public static String getKrb5LoginModuleName()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.