Interface AuthenticationInformation

All Known Implementing Classes:
BasicAuthenticationInformation, TokenBasedAuthenticationInformation

public interface AuthenticationInformation
Provides authentication information for requests to a federation member.

The information is provided in a form that it can be applied directly to an HTTP request builder or to a collection of HTTP headers.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Applies the authentication information to the given HTTP request builder.
    void
    Applies the authentication information to the given HTTP headers.
    void
    applyTo(org.apache.jena.sparql.exec.http.QueryExecutionHTTPBuilder b)
    Applies the authentication information to the given QueryExecutionHTTPBuilder.
    void
    Checks whether the authentication information is complete.
  • Method Details

    • applyTo

      void applyTo(HttpRequest.Builder builder)
      Applies the authentication information to the given HTTP request builder.
      Parameters:
      builder - HTTP request builder to which the authentication information is applied
    • applyTo

      void applyTo(Map<String,String> headers)
      Applies the authentication information to the given HTTP headers.
      Parameters:
      headers - HTTP headers to which the authentication information is applied
    • applyTo

      void applyTo(org.apache.jena.sparql.exec.http.QueryExecutionHTTPBuilder b)
      Applies the authentication information to the given QueryExecutionHTTPBuilder.
      Parameters:
      b - QueryExecutionHTTPBuilder to which the authentication information is applied
    • checkForCompleteness

      void checkForCompleteness() throws IncompleteAuthenticationInformationError
      Checks whether the authentication information is complete.
      Throws:
      IncompleteAuthenticationInformationError - if required authentication information is missing