public class CredentialsProviderUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
ticketExpireTime80 |
| Constructor and Description |
|---|
CredentialsProviderUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.client.CredentialsProvider |
getBasicCredentials(String user,
String password) |
static KerberosCredentialsProvider |
getKerberosCredentials(String user,
String password) |
static KerberosTicket |
getTGT(Subject subject) |
static Subject |
login(String userPrincipalName,
String keytabPath) |
static Boolean |
ticketWillExpire(KerberosTicket ticket) |
public static KerberosCredentialsProvider getKerberosCredentials(String user, String password)
public static KerberosTicket getTGT(Subject subject)
public static Boolean ticketWillExpire(KerberosTicket ticket)
public static Subject login(String userPrincipalName, String keytabPath) throws PrivilegedActionException
PrivilegedActionExceptionCopyright © 2026 The Apache Software Foundation. All rights reserved.