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
SecurityContextFactoryimplementation. It createsSecurityContextImplinstances 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 SecurityContextFactoryINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityContextcreateSecurityContext(HttpServerExchange exchange, AuthenticationMode mode, IdentityManager identityManager, String programmaticMechName)Instantiates and returns aSecurityContextusing 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: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.
-
-