[Java] Support cookie-based security schemas in Java clients (#4155)

* Adding cookie support and cookie-based AuthKeys to Java clients

* Fix indentation

* Revert accidental change

* Updating samples

* Fixing tests and regenerating samples
This commit is contained in:
atsharp
2019-10-19 05:05:02 -05:00
committed by William Cheng
parent ab0b3d9795
commit d75d089bc9
221 changed files with 2555 additions and 799 deletions

View File

@@ -36,6 +36,8 @@ public class ApiKeyAuth implements RequestInterceptor {
template.query(paramName, apiKey);
} else if ("header".equals(location)) {
template.header(paramName, apiKey);
} else if ("cookie".equals(location)) {
template.header("Cookie", String.format("%s=%s", paramName, apiKey));
}
}
}