use of org.ovirt.engine.core.common.queries.SignStringParameters in project ovirt-engine by oVirt.
the class GetSignedWebsocketProxyTicketQuery method executeQueryCommandChecked.
private void executeQueryCommandChecked() throws IOException {
final GraphicsInfo graphicsInfo = getGraphicsInfo();
final Map<String, Object> ticketModel = createTicket(graphicsInfo);
final String jsonTicket = new ObjectMapper().writeValueAsString(ticketModel);
final String encodedTicket = URLEncoder.encode(jsonTicket, StandardCharsets.UTF_8.name());
final String signedTicket = Backend.getInstance().runInternalQuery(QueryType.SignString, new SignStringParameters(encodedTicket)).getReturnValue();
setReturnValue(signedTicket);
}
use of org.ovirt.engine.core.common.queries.SignStringParameters in project ovirt-engine by oVirt.
the class WebClientConsoleInvoker method invokeClient.
public void invokeClient() {
Frontend.getInstance().runQuery(QueryType.SignString, new SignStringParameters(createConnectionString(host, port, useSsl)), new AsyncQuery<>((AsyncCallback<QueryReturnValue>) returnValue -> {
String signedTicket = returnValue.getReturnValue();
invokeClientNative(signedTicket);
}));
}
Aggregations