public final class KerberosUtils extends Object
| Constructor and Description |
|---|
KerberosUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
canonicalClientPrincipal(String principal,
String hostname) |
static String |
canonicalPrincipal(String principal,
String hostname) |
static KerberosTicket |
getTgt(Subject subject) |
static long |
getTgtRefreshTime(KerberosTicket ticket) |
static boolean |
isOriginalTgt(KerberosTicket ticket)
Check whether the server principal is the TGS's principal
|
static String[] |
splitPrincipal(String principal) |
public static String canonicalClientPrincipal(String principal, String hostname)
public static KerberosTicket getTgt(Subject subject)
public static long getTgtRefreshTime(KerberosTicket ticket)
public static boolean isOriginalTgt(KerberosTicket ticket)
ticket - the original TGT (the ticket that is obtained when a kinit is done)Copyright © 2023 The Apache Software Foundation. All rights reserved.