com.microsoft.aad.msal4j.HttpUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.mail.outlook.auth.connector.provider
Show all versions of com.liferay.mail.outlook.auth.connector.provider
Liferay Mail Outlook Auth Connector Provider
// 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);
}
}