All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.chavaillaz.client.common.security.Authentication Maven / Gradle / Ivy

Go to download

Library for the creation of asynchronous clients supporting multiple HTTP clients

There is a newer version: 2.1.3
Show newest version
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);


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy