util/java/src/main/java/com/aliyun/eventbridge/signature/SignatureVerify.java
public static Map<String, String> toHeaderMap(List<Header> headers) {
        Map<String, String> headerMap = new HashMap<>();
        if (headers == null || headers.isEmpty()) {
            return headerMap;
        }
        for (Header header : headers) {
            headerMap.put(header.getName(), header.getValue());
        }
        return headerMap;
    }
/**
     * convert header list to header map
     *
     * @param headers
     *
     * @return
     */
convert header list to header map
@param headers

@return
convert header list to header map @param headers @return
public static Map<String, String> toHeaderMap(List<Header> headers) {
        Map<String, String> headerMap = new HashMap<>();
        if (headers == null || headers.isEmpty()) {
            return headerMap;
        }
        for (Header header : headers) {
            headerMap.put(header.getName(), header.getValue());
        }
        return headerMap;
    }
public static Map < String , String > toHeaderMap ( List < Header > headers ) { Map < String , String > headerMap = new HashMap < > ( ) ; if ( headers == null || headers . isEmpty ( ) ) { return headerMap ; } for ( Header header : headers ) { headerMap . put ( header . getName ( ) , header . getValue ( ) ) ; } return headerMap ; }
convert header list to header map
 @param headers
convert header list to header map @param headers