throw new GadgetException(GadgetException.Code.INTERNAL_SERVER_ERROR,
"The Domino OAuth Store for container " + securityToken.getContainer() + " did not return client information for viewer: " +
securityToken.getViewerId() + ", service: " + serviceName + " gadget: " + securityToken.getAppUrl());
}
OAuthConsumer consumer;
final KeyType keyType = client.getKeyType();
if (keyType == KeyType.RSA_PRIVATE) {
consumer = new OAuthConsumer(null, client.getConsumerKey(), null, provider);
// The oauth.net java code has lots of magic. By setting this property here, code thousands
// of lines away knows that the consumerSecret value in the consumer should be treated as
// an RSA private key and not an HMAC key.