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 aSecurityContext
using the specified parameters.
-
Field Details
-
INSTANCE
-
-
Method Details
-
createSecurityContext
public SecurityContext createSecurityContext(HttpServerExchange exchange, AuthenticationMode mode, IdentityManager identityManager, String programmaticMechName) Description copied from interface:SecurityContextFactory
Instantiates and returns a
SecurityContext
using the specified parameters.- Specified by:
createSecurityContext
in interfaceSecurityContextFactory
- Parameters:
exchange
- theHttpServerExchange
instance.mode
- theAuthenticationMode
.identityManager
- theIdentityManager
instance.programmaticMechName
- aString
representing the programmatic mechanism name. Can be null.- Returns:
- the constructed
SecurityContext
instance.
-