Interface BasicAuthObserver

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface BasicAuthObserver
    An observer being notified by incoming HTTP Basic-Authentication requests which might have been registered via BasicAuthObservable.onBasicAuthRequest(BasicAuthObserver) possibly using lambda syntax.
    • Method Detail

      • onBasicAuthRequest

        BasicAuthResponse onBasicAuthRequest​( aLocalAddress,
                                             HttpMethod aHttpMethod,
                                             java.lang.String aLocator,
                                             BasicAuthCredentials aCredentials,
                                             java.lang.String aRealm)
        Invoked upon an incoming HTTP Basic-Authentication requests. The user name and the password (in case being provided by the client) may be accepted or rejected by returning 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.