Class DefaultSingleSignOnSessionFactory
java.lang.Object
org.wildfly.security.http.util.sso.DefaultSingleSignOnSessionFactory
- All Implemented Interfaces:
SingleSignOnSessionContext,SingleSignOnSessionFactory
public class DefaultSingleSignOnSessionFactory
extends Object
implements SingleSignOnSessionFactory, SingleSignOnSessionContext
SingleSignOnSessionFactory that delegates the management of single sign-on entries to a SingleSignOnManager.- Author:
- Pedro Igor, Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSingleSignOnSessionFactory(SingleSignOnManager manager, KeyPair keyPair) DefaultSingleSignOnSessionFactory(SingleSignOnManager manager, KeyPair keyPair, Consumer<HttpsURLConnection> logoutConnectionConfigurator) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureLogoutConnection(HttpURLConnection connection) create(HttpServerRequest request, String mechanismName, boolean programmatic) Creates a newSingleSignOnSessionfor the specified request and authentication mechanism.createLogoutParameter(String sessionId) find(String id, HttpServerRequest request) Returns aSingleSignOnSessioninstance associated with the specified identifier and request.verifyLogoutParameter(String parameter)
-
Constructor Details
-
DefaultSingleSignOnSessionFactory
-
DefaultSingleSignOnSessionFactory
public DefaultSingleSignOnSessionFactory(SingleSignOnManager manager, KeyPair keyPair, Consumer<HttpsURLConnection> logoutConnectionConfigurator)
-
-
Method Details
-
find
Description copied from interface:SingleSignOnSessionFactoryReturns aSingleSignOnSessioninstance associated with the specified identifier and request.- Specified by:
findin interfaceSingleSignOnSessionFactory- Parameters:
id- the identifier to lookup the sessionrequest- the current request- Returns:
- a
SingleSignOnSessioninstance associated with the specified identifier and request, ornullif there is no session with the given identifier
-
create
public SingleSignOnSession create(HttpServerRequest request, String mechanismName, boolean programmatic) Description copied from interface:SingleSignOnSessionFactoryCreates a newSingleSignOnSessionfor the specified request and authentication mechanism.- Specified by:
createin interfaceSingleSignOnSessionFactory- Parameters:
request- the current requestmechanismName- the name of the authentication mechanismprogrammatic-trueif the session if being created for programmatic authentication- Returns:
- a
SingleSignOnSessioninstance associated with the specified identifier and request
-
getSingleSignOnManager
- Specified by:
getSingleSignOnManagerin interfaceSingleSignOnSessionContext
-
createLogoutParameter
- Specified by:
createLogoutParameterin interfaceSingleSignOnSessionContext
-
verifyLogoutParameter
- Specified by:
verifyLogoutParameterin interfaceSingleSignOnSessionContext
-
configureLogoutConnection
- Specified by:
configureLogoutConnectionin interfaceSingleSignOnSessionContext
-