Interface SecurityContextFactory

All Known Implementing Classes:
SecurityContextFactoryImpl

@Deprecated(since="1.3.0", forRemoval=true) public interface SecurityContextFactory
Deprecated, for removal: This API element is subject to removal in a future version.
Instead extend AbstractSecurityContextAssociationHandler to provide alternative contexts.

Interface that must be implemented by factories of SecurityContext instances.

Author:
Stefan Guilhen
  • Method Details

    • createSecurityContext

      SecurityContext createSecurityContext(HttpServerExchange exchange, AuthenticationMode mode, IdentityManager identityManager, String programmaticMechName)
      Deprecated, for removal: This API element is subject to removal in a future version.

      Instantiates and returns a SecurityContext using the specified parameters.

      Parameters:
      exchange - the HttpServerExchange instance.
      mode - the AuthenticationMode.
      identityManager - the IdentityManager instance.
      programmaticMechName - a String representing the programmatic mechanism name. Can be null.
      Returns:
      the constructed SecurityContext instance.