Package de.uplanet.lucy.server.kerberos
Class KerberosTicket
- java.lang.Object
-
- de.uplanet.lucy.server.kerberos.KerberosTicket
-
@Scriptable public final class KerberosTicket extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringget()CallsThreadContext.getKerberosTicketBase64().static Stringget(String p_strSpn)Returns the Kerberos ticket for the given service principal name.static booleanisAvailable()Checks if a Kerberos ticket is available in the current thread.static booleanisAvailable(String p_strSpn)Checks if a Kerberos ticket for the given service principal name is available in the current thread.
-
-
-
Method Detail
-
isAvailable
public static boolean isAvailable()
Checks if a Kerberos ticket is available in the current thread.- Returns:
trueif a Kerberos ticket is available in the current thread, orfalseotherwise.
-
isAvailable
public static boolean isAvailable(String p_strSpn)
Checks if a Kerberos ticket for the given service principal name is available in the current thread.- Parameters:
p_strSpn- The service principal name.- Returns:
trueif a Kerberos ticket is available in the current thread, orfalseotherwise.
-
get
public static String get()
CallsThreadContext.getKerberosTicketBase64().- Returns:
- The base64-encoded Kerberos ticket that is bound to the current thread,
or
nullifisAvailable()returnsfalse.
-
get
public static String get(String p_strSpn)
Returns the Kerberos ticket for the given service principal name. CallsThreadContext.getKerberosTicketBase64().- Parameters:
p_strSpn- The service principal name.- Returns:
- The base64-encoded Kerberos ticket that is bound to the current thread,
or
nullifisAvailable(String)returnsfalse.
-
-