package cn.com.qmth.stmms.api.utils;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang.StringUtils;

public class AuthInfoUtils {

    public static final String AUTH_INFO_HEADER_KEY = "auth-info";

    public static final String ERROR_MESSAGE_HEADER_KEY = "error-info";

    public static String getAuthInfoValue(HttpServletRequest request) {
        return StringUtils.trimToNull(request.getHeader(AUTH_INFO_HEADER_KEY));
    }
}
