Class ClientHeaderPolicy


  • public final class ClientHeaderPolicy
    extends Object
    Validates caller-configured HTTP headers before a client request is created.
    Author:
    Luca Frosini (ISTI - CNR)
    • Method Detail

      • validateCustomHeader

        public static void validateCustomHeader​(String name,
                                                Collection<String> authenticationHeaderNames)
        Rejects headers controlled by the transport or active authorization provider.
        Parameters:
        name - caller-supplied header name
        authenticationHeaderNames - header names produced by the active authorization provider
        Throws:
        IllegalArgumentException - if the name is blank or reserved