}
private HttpParameter[] setAppSecretProofParameter(HttpParameter[] parameters, Authorization authorization) {
if (authorization == null) return parameters;
if (!(authorization instanceof OAuthAuthorization)) return parameters;
OAuthAuthorization oAuthAuthorization = (OAuthAuthorization) authorization;
if (!oAuthAuthorization.isAppSecretProofEnabled()) return parameters;
String appSecretProof = oAuthAuthorization.generateAppSecretProof();
return HttpParameter.merge(parameters, new HttpParameter("appsecret_proof", appSecretProof));
}