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

com.microsoft.aad.msal4j.HttpUtils Maven / Gradle / Ivy

There is a newer version: 1.0.15
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.microsoft.aad.msal4j;

import java.util.List;
import java.util.Map;

class HttpUtils {

    static String headerValue(Map> headers, String headerName) {

        if (headerName == null || headers == null) {
            return null;
        }

        List headerValue = headers.get(headerName);

        if (headerValue == null || headerValue.isEmpty()) {
            return null;
        }

        return String.join(",", headerValue);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy