Class BasicAuthenticationHttpHandler
- java.lang.Object
-
- com.github.toolarium.jwebserver.handler.auth.BasicAuthenticationHttpHandler
-
public final class BasicAuthenticationHttpHandler extends java.lang.ObjectBasic authentication utility
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.undertow.server.HttpHandleraddHandler(IWebServerConfiguration configuration, io.undertow.server.HttpHandler handlerToWrap)Add basic authenticationstatic io.undertow.server.HttpHandleraddHandler(IWebServerConfiguration configuration, io.undertow.server.HttpHandler handlerToWrap, java.lang.String realmName, io.undertow.security.idm.IdentityManager identityManager)Add basic authentication
-
-
-
Method Detail
-
addHandler
public static io.undertow.server.HttpHandler addHandler(IWebServerConfiguration configuration, io.undertow.server.HttpHandler handlerToWrap)
Add basic authentication- Parameters:
configuration- the configurationhandlerToWrap- the handler to wrap- Returns:
- the handler
-
addHandler
public static io.undertow.server.HttpHandler addHandler(IWebServerConfiguration configuration, io.undertow.server.HttpHandler handlerToWrap, java.lang.String realmName, io.undertow.security.idm.IdentityManager identityManager)
Add basic authentication- Parameters:
configuration- the configurationhandlerToWrap- the handler to wraprealmName- the realm nameidentityManager- the idendity provider- Returns:
- the handler
-
-