@Scriptable public final class KerberosTicket extends Object
Modifier and Type | Method and Description |
---|---|
static String |
get()
Calls
ThreadContext.getKerberosTicketBase64() . |
static String |
get(String p_strSpn)
Returns the Kerberos ticket for the given service principal name.
|
static boolean |
isAvailable()
Checks if a Kerberos ticket is available in the current thread.
|
static boolean |
isAvailable(String p_strSpn)
Checks if a Kerberos ticket for the given service principal name is available in the current thread.
|
public static boolean isAvailable()
true
if a Kerberos ticket is available in
the current thread, or false
otherwise.public static boolean isAvailable(String p_strSpn)
p_strSpn
- The service principal name.true
if a Kerberos ticket is available in
the current thread, or false
otherwise.public static String get()
ThreadContext.getKerberosTicketBase64()
.null
if isAvailable()
returns false
.public static String get(String p_strSpn)
ThreadContext.getKerberosTicketBase64()
.p_strSpn
- The service principal name.null
if isAvailable(String)
returns false
.