Interface Authentication

  • All Known Implementing Classes:
    BasicAuthentication, OAuthAuthentication, TokenAuthentication

    public interface Authentication
    Generic interface to the different authentication schemes of the Abiquo API.

    Some authentication schemes such as OAuth will sign the request headers, so the request authentication should be performed just before sending the request over the wire to make sure the underlying HTTP libraries don't add or modify the existing headers (breaking the signature).

    Author:
    Ignasi Barrera
    • Method Detail

      • authenticate

        com.squareup.okhttp.Request authenticate​(com.squareup.okhttp.Request unauthenticated)
        Authenticates the given request.
        Parameters:
        unauthenticated - The request to authenticate.
        Returns:
        The authenticated request.
      • allowAbiquoToken

        default boolean allowAbiquoToken()