Top Description Methods
io.undertow.security.api

public Interface SecurityContextFactory

Known Direct Implementers
io.undertow.security.impl.SecurityContextFactoryImpl
Annotations
@Deprecated
since:1.3.0
forRemoval:true
Imports
io.undertow.security.idm.IdentityManager, io.undertow.server.HttpServerExchange

Deprecated

for removal since 1.3.0.

Instead extend AbstractSecurityContextAssociationHandler to provide alternative contexts.

Interface that must be implemented by factories of io.undertow.security.api.SecurityContext instances.

Author
Stefan Guilhen

Method Summary

Modifier and TypeMethod and Description
public SecurityContext

Returns:

the constructed SecurityContext instance.
createSecurityContext
(final HttpServerExchange
the HttpServerExchange instance.
exchange
,
final AuthenticationMode
the AuthenticationMode.
mode
,
final IdentityManager
the IdentityManager instance.
identityManager
,
final String
a String representing the programmatic mechanism name. Can be null.
programmaticMechName
)

Instantiates and returns a SecurityContext using the specified parameters.

Method Detail

createSecurityContextback to summary
public SecurityContext createSecurityContext(final HttpServerExchange exchange, final AuthenticationMode mode, final IdentityManager identityManager, final String programmaticMechName)

Instantiates and returns a SecurityContext using the specified parameters.

Parameters
exchange:HttpServerExchange

the HttpServerExchange instance.

mode:AuthenticationMode

the AuthenticationMode.

identityManager:IdentityManager

the IdentityManager instance.

programmaticMechName:String

a String representing the programmatic mechanism name. Can be null.

Returns:SecurityContext

the constructed SecurityContext instance.