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

com.identityx.auth.impl.AuthSettings Maven / Gradle / Ivy

package com.identityx.auth.impl;

import java.util.LinkedHashMap;

public class AuthSettings {

	public static String AUTHORIZATION_HEADER = "Authorization";
	public static String IDX_ORIGIN_HEADER = "X-IdxOrigin";
	protected static LinkedHashMap CUSTOM_HEADERS = new LinkedHashMap();
	
	public static void addCustomHeader(String name, String value)
	{
		CUSTOM_HEADERS.put(name, value);		
	}

	public static void removeCustomHeader(String name)
	{
		CUSTOM_HEADERS.remove(name);		
	}

	public static void replaceCustomHeader(String name, String value)
	{
		if (CUSTOM_HEADERS.containsKey(name))
		{
			CUSTOM_HEADERS.remove(name);
			CUSTOM_HEADERS.put(name, value);		
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy