@FunctionalInterface public interface BasicAuthObserver
BasicAuthObservable.onBasicAuthRequest(BasicAuthObserver)
possibly
using lambda syntax.Modifier and Type | Method and Description |
---|---|
BasicAuthResponse |
onBasicAuthRequest(InetSocketAddress aLocalAddress,
InetSocketAddress aRemoteAddress,
HttpMethod aHttpMethod,
String aLocator,
BasicAuthCredentials aCredentials,
String aRealm)
Invoked upon an incoming HTTP Basic-Authentication requests.
|
BasicAuthResponse onBasicAuthRequest(InetSocketAddress aLocalAddress, InetSocketAddress aRemoteAddress, HttpMethod aHttpMethod, String aLocator, BasicAuthCredentials aCredentials, String aRealm)
BasicAuthResponse.BASIC_AUTH_SUCCESS
of
BasicAuthResponse.BASIC_AUTH_FAILURE
.aLocalAddress
- The InetSocketAddress
of the receiver of the
request.aRemoteAddress
- The remote client's InetSocketAddress
.aHttpMethod
- The HTTP-Request method involved in the basic
authentication request.aLocator
- The locator of the request.aCredentials
- The name for which to grant access.aRealm
- The realm to which this request belongs.BasicAuthResponse.BASIC_AUTH_SUCCESS
in case HTTP basic
authentication (user and password) is accepted,
BasicAuthResponse.BASIC_AUTH_FAILURE
if HTTP basic
authentication (user and password) is rejected.Copyright © 2017. All rights reserved.