try {
params.put("id_token_hint", idTokenHint.serialize());
} catch (IllegalStateException e) {
throw new SerializeException("Couldn't serialize ID token hint: " + e.getMessage(), e);
}
}
if (loginHint != null)
params.put("login_hint", loginHint);
if (acrValues != null) {
StringBuilder sb = new StringBuilder();
for (ACR acr: acrValues) {
if (sb.length() > 0)
sb.append(' ');
sb.append(acr.toString());
}
params.put("acr_values", sb.toString());
}
if (claims != null)
params.put("claims", claims.toJSONObject().toString());
if (requestObject != null) {
try {
params.put("request", requestObject.serialize());
} catch (IllegalStateException e) {
throw new SerializeException("Couldn't serialize request object to JWT: " + e.getMessage(), e);
}
}
if (requestURI != null)
params.put("request_uri", requestURI.toString());