Package io.undertow.security.impl
Class SecurityContextFactoryImpl
java.lang.Object
io.undertow.security.impl.SecurityContextFactoryImpl
- All Implemented Interfaces:
SecurityContextFactory
Default SecurityContextFactory implementation. It creates
SecurityContextImpl instances with the specified parameters, setting the
programmatic mechanism name if it is not null.
- Author:
- Stefan Guilhen
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateSecurityContext(HttpServerExchange exchange, AuthenticationMode mode, IdentityManager identityManager, String programmaticMechName) Instantiates and returns aSecurityContextusing the specified parameters.
-
Field Details
-
INSTANCE
-
-
Method Details
-
createSecurityContext
public SecurityContext createSecurityContext(HttpServerExchange exchange, AuthenticationMode mode, IdentityManager identityManager, String programmaticMechName) Description copied from interface:SecurityContextFactoryInstantiates and returns a
SecurityContextusing the specified parameters.- Specified by:
createSecurityContextin interfaceSecurityContextFactory- Parameters:
exchange- theHttpServerExchangeinstance.mode- theAuthenticationMode.identityManager- theIdentityManagerinstance.programmaticMechName- aStringrepresenting the programmatic mechanism name. Can be null.- Returns:
- the constructed
SecurityContextinstance.
-