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

org.hisp.dhis.auth.CookieAuthentication Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
package org.hisp.dhis.auth;

import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

import org.apache.hc.core5.http.HttpHeaders;

@Getter
@RequiredArgsConstructor
public class CookieAuthentication
    implements Authentication
{
    @NonNull
    private final String sessionId;

    @Override
    public String getHttpHeaderAuthName()
    {
        return HttpHeaders.COOKIE;
    }

    @Override
    public String getHttpHeaderAuthValue()
    {
        return String.format( "JSESSIONID=%s", sessionId );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy