Class SpnegoCredential

java.lang.Object
org.codelibs.fess.app.web.base.login.SpnegoCredential
All Implemented Interfaces:
FessCredential, org.lastaflute.web.login.credential.LoginCredential

public class SpnegoCredential extends Object implements org.lastaflute.web.login.credential.LoginCredential, FessCredential
SPNEGO authentication credential implementation. This class represents login credentials obtained through SPNEGO (Security Provider Negotiation Protocol) authentication. It contains the username extracted from the SPNEGO authentication process, typically from a Kerberos ticket.
  • Constructor Details

    • SpnegoCredential

      public SpnegoCredential(String username)
      Constructs a new SpnegoCredential with the specified username.
      Parameters:
      username - The username obtained from SPNEGO authentication
  • Method Details

    • getUserId

      public String getUserId()
      Gets the user identifier from this credential.
      Specified by:
      getUserId in interface FessCredential
      Returns:
      The username from SPNEGO authentication
    • toString

      public String toString()
      Returns a string representation of this credential.
      Overrides:
      toString in class Object
      Returns:
      A string representation containing the username in braces