client.setServiceName(MockUtils.SERVICE_NAME);
client.setTokenUrl(MockUtils.TOKEN_URL);
}
protected static OAuth2Client getClient_Code_Confidential() throws Exception {
final OAuth2Client client = new OAuth2Client(MockUtils.getDummyEncrypter());
MockUtils.setClientCommons(client);
client.setClientAuthenticationType(OAuth2Message.BASIC_AUTH_TYPE);
client.setClientId(MockUtils.CLIENT_ID1);
client.setClientSecret(MockUtils.CLIENT_SECRET1.getBytes("UTF-8"));
client.setGadgetUri(MockUtils.GADGET_URI1);
client.setType(OAuth2Accessor.Type.CONFIDENTIAL);
client.setAllowModuleOverride(true);
client.setAuthorizationHeader(true);
client.setUrlParameter(false);
return client;
}