Class ClientHeaderPolicy
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.api.client.ClientHeaderPolicy
-
public final class ClientHeaderPolicy extends Object
Validates caller-configured HTTP headers before a client request is created.- Author:
- Luca Frosini (ISTI - CNR)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidvalidateCustomHeader(String name, Collection<String> authenticationHeaderNames)Rejects headers controlled by the transport or active authorization provider.
-
-
-
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 nameauthenticationHeaderNames- header names produced by the active authorization provider- Throws:
IllegalArgumentException- if the name is blank or reserved
-
-