Class SamlAuthenticator

java.lang.Object
org.codelibs.fess.sso.saml.SamlAuthenticator
All Implemented Interfaces:
SsoAuthenticator

public class SamlAuthenticator extends Object implements SsoAuthenticator
Authenticator for SAML.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
    The prefix for SAML properties.
    protected static final String
    The key for the SAML state in the session.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.lastaflute.web.login.credential.LoginCredential
    createLoginCredential(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.codelibs.saml2.Auth auth)
    Creates a login credential.
    org.lastaflute.web.login.credential.LoginCredential
    Gets the login credential for SSO authentication.
    protected org.lastaflute.web.response.ActionResponse
    Gets the logout response.
    protected org.lastaflute.web.response.ActionResponse
    Gets the metadata response.
    org.lastaflute.web.response.ActionResponse
    Gets the action response for the specified SSO response type.
    protected org.codelibs.saml2.core.settings.Saml2Settings
    Gets the SAML settings.
    void
    Initializes the SamlAuthenticator.
    logout(org.codelibs.fess.mylasta.action.FessUserBean user)
    Performs logout for the specified user.
    void
    Resolves credential using the provided resolver.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SamlAuthenticator

      public SamlAuthenticator()
      Constructor.
  • Method Details

    • init

      @PostConstruct public void init()
      Initializes the SamlAuthenticator.
    • getSettings

      protected org.codelibs.saml2.core.settings.Saml2Settings getSettings()
      Gets the SAML settings.
      Returns:
      The SAML settings.
    • getLoginCredential

      public org.lastaflute.web.login.credential.LoginCredential getLoginCredential()
      Description copied from interface: SsoAuthenticator
      Gets the login credential for SSO authentication.
      Specified by:
      getLoginCredential in interface SsoAuthenticator
      Returns:
      The login credential.
    • createLoginCredential

      protected org.lastaflute.web.login.credential.LoginCredential createLoginCredential(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.codelibs.saml2.Auth auth)
      Creates a login credential.
      Parameters:
      request - The HTTP request.
      response - The HTTP response.
      auth - The SAML authentication.
      Returns:
      The login credential.
    • resolveCredential

      public void resolveCredential(FessLoginAssist.LoginCredentialResolver resolver)
      Description copied from interface: SsoAuthenticator
      Resolves credential using the provided resolver.
      Specified by:
      resolveCredential in interface SsoAuthenticator
      Parameters:
      resolver - The login credential resolver.
    • logout

      public String logout(org.codelibs.fess.mylasta.action.FessUserBean user)
      Description copied from interface: SsoAuthenticator
      Performs logout for the specified user.
      Specified by:
      logout in interface SsoAuthenticator
      Parameters:
      user - The user to logout.
      Returns:
      The logout URL or null if not applicable.
    • getResponse

      public org.lastaflute.web.response.ActionResponse getResponse(SsoResponseType responseType)
      Description copied from interface: SsoAuthenticator
      Gets the action response for the specified SSO response type.
      Specified by:
      getResponse in interface SsoAuthenticator
      Parameters:
      responseType - The type of SSO response required.
      Returns:
      The action response.
    • getMetadataResponse

      protected org.lastaflute.web.response.ActionResponse getMetadataResponse()
      Gets the metadata response.
      Returns:
      The metadata response.
    • getLogoutResponse

      protected org.lastaflute.web.response.ActionResponse getLogoutResponse()
      Gets the logout response.
      Returns:
      The logout response.