com.chavaillaz.client.common.security.Authentication Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-client Show documentation
Show all versions of common-client Show documentation
Library for the creation of asynchronous clients supporting multiple HTTP clients
package com.chavaillaz.client.common.security;
import java.util.function.BiConsumer;
/**
* Hold the authentication details to access the desired services.
* Its implementation needs to fill headers and/or cookies.
*/
public abstract class Authentication {
/**
* Fills the credentials in the headers using the given method.
*
* @param addHeader The filling method
*/
public abstract void fillHeaders(BiConsumer addHeader);
/**
* Fills the credentials in the cookies using the given method.
*
* @param addCookie The filling method
*/
public abstract void fillCookies(BiConsumer addCookie);
}