Package org.codelibs.fess.sso.saml
Class SamlAuthenticator
java.lang.Object
org.codelibs.fess.sso.saml.SamlAuthenticator
- All Implemented Interfaces:
SsoAuthenticator
Authenticator for SAML.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.lastaflute.web.login.credential.LoginCredentialcreateLoginCredential(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.codelibs.saml2.Auth auth) Creates a login credential.org.lastaflute.web.login.credential.LoginCredentialGets the login credential for SSO authentication.protected org.lastaflute.web.response.ActionResponseGets the logout response.protected org.lastaflute.web.response.ActionResponseGets the metadata response.org.lastaflute.web.response.ActionResponsegetResponse(SsoResponseType responseType) Gets the action response for the specified SSO response type.protected org.codelibs.saml2.core.settings.Saml2SettingsGets the SAML settings.voidinit()Initializes the SamlAuthenticator.logout(org.codelibs.fess.mylasta.action.FessUserBean user) Performs logout for the specified user.voidResolves credential using the provided resolver.
-
Field Details
-
SAML_PREFIX
The prefix for SAML properties.- See Also:
-
SAML_STATE
The key for the SAML state in the session.- See Also:
-
-
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:SsoAuthenticatorGets the login credential for SSO authentication.- Specified by:
getLoginCredentialin interfaceSsoAuthenticator- 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
Description copied from interface:SsoAuthenticatorResolves credential using the provided resolver.- Specified by:
resolveCredentialin interfaceSsoAuthenticator- Parameters:
resolver- The login credential resolver.
-
logout
Description copied from interface:SsoAuthenticatorPerforms logout for the specified user.- Specified by:
logoutin interfaceSsoAuthenticator- Parameters:
user- The user to logout.- Returns:
- The logout URL or null if not applicable.
-
getResponse
Description copied from interface:SsoAuthenticatorGets the action response for the specified SSO response type.- Specified by:
getResponsein interfaceSsoAuthenticator- 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.
-