public final class HttpAuthenticationManager extends Manager
This manager allows to listen for inbound requests (by an XMPP server) to confirm that the current XMPP user made an HTTP request, i.e. to verify that the HTTP request was in fact made by the XMPP user.
If you want to confirm or deny HTTP requests, add a listener and call HttpAuthenticationEvent.confirm()
or HttpAuthenticationEvent.deny()
on the event object.
Modifier and Type | Method and Description |
---|---|
void |
addHttpAuthenticationListener(java.util.function.Consumer<HttpAuthenticationEvent> httpAuthenticationListener)
Adds a HTTP authentication listener, which allows to listen for HTTP authentication confirmation requests.
|
void |
removeHttpAuthenticationListener(java.util.function.Consumer<HttpAuthenticationEvent> httpAuthenticationListener)
Removes a previously added HTTP authentication listener.
|
isEnabled, setEnabled
public void addHttpAuthenticationListener(java.util.function.Consumer<HttpAuthenticationEvent> httpAuthenticationListener)
Adds a HTTP authentication listener, which allows to listen for HTTP authentication confirmation requests.
httpAuthenticationListener
- The listener.removeHttpAuthenticationListener(Consumer)
public void removeHttpAuthenticationListener(java.util.function.Consumer<HttpAuthenticationEvent> httpAuthenticationListener)
Removes a previously added HTTP authentication listener.
httpAuthenticationListener
- The listener.addHttpAuthenticationListener(Consumer)
Copyright © 2014–2019 XMPP.rocks. All rights reserved.