Class KerberosTicket

java.lang.Object
de.uplanet.lucy.server.kerberos.KerberosTicket

@Scriptable public final class KerberosTicket extends Object
  • Method Summary

    Modifier and Type
    Method
    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
    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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isAvailable

      public static boolean isAvailable()
      Checks if a Kerberos ticket is available in the current thread.
      Returns:
      true if a Kerberos ticket is available in the current thread, or false otherwise.
    • 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:
      true if a Kerberos ticket is available in the current thread, or false otherwise.
    • get

      public static String get()
      Calls ThreadContext.getKerberosTicketBase64().
      Returns:
      The base64-encoded Kerberos ticket that is bound to the current thread, or null if isAvailable() returns false.
    • get

      public static String get(String p_strSpn)
      Returns the Kerberos ticket for the given service principal name. Calls ThreadContext.getKerberosTicketBase64().
      Parameters:
      p_strSpn - The service principal name.
      Returns:
      The base64-encoded Kerberos ticket that is bound to the current thread, or null if isAvailable(String) returns false.