Package io.undertow.security.impl
Class SecurityContextFactoryImpl
- java.lang.Object
-
- io.undertow.security.impl.SecurityContextFactoryImpl
-
- All Implemented Interfaces:
SecurityContextFactory
public class SecurityContextFactoryImpl extends Object implements SecurityContextFactory
Default
SecurityContextFactory
implementation. It createsSecurityContextImpl
instances with the specified parameters, setting the programmatic mechanism name if it is not null.- Author:
- Stefan Guilhen
-
-
Field Summary
Fields Modifier and Type Field Description static SecurityContextFactory
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityContext
createSecurityContext(HttpServerExchange exchange, AuthenticationMode mode, IdentityManager identityManager, String programmaticMechName)
Instantiates and returns aSecurityContext
using the specified parameters.
-
-
-
Field Detail
-
INSTANCE
public static final SecurityContextFactory INSTANCE
-
-
Method Detail
-
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.
-
-