Class ClientHeaderPolicy
java.lang.Object
org.gcube.informationsystem.resourceregistry.api.client.ClientHeaderPolicy
Validates caller-configured HTTP headers before a client request is created.
- Author:
- Luca Frosini (ISTI - CNR)
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateCustomHeader(String name, Collection<String> authenticationHeaderNames) Rejects headers controlled by the transport or active authorization provider.
-
Method Details
-
validateCustomHeader
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
-