Interface AuthenticationHandler
- All Known Implementing Classes:
BasicAuthenticationHandler, BearerTokenAuthenticationHandler
public interface AuthenticationHandler
Intercepts an HTTP request before it is sent, allowing authentication credentials to be injected.
Implementations modify the outgoing HttpRequest in place. The most common use case is adding an
Authorization header via HttpRequest.addHeader(String, String).
A handler is registered on a session via
SPARQLProtocolSession.setAuthenticationHandler(AuthenticationHandler).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(HttpRequest request) Applies authentication credentials to the given request by modifying it in place.
-
Method Details
-
authenticate
Applies authentication credentials to the given request by modifying it in place.- Parameters:
request- the outgoing HTTP request to authenticate; nevernull
-