use of edu.uiuc.ncsa.security.delegation.storage.impl.BaseClientConverter in project OA4MP by ncsa.
the class DDServerTests method getClientConverter.
protected OA2ClientConverter getClientConverter(CMTestStoreProvider tp2) throws Exception {
BaseClientConverter bcc = tp2.getClientStore().getACConverter();
if (bcc instanceof OA2ClientConverter) {
return (OA2ClientConverter) bcc;
}
// In the weird chance something does not have one, the default is provided.
OA2ClientProvider clientProvider = new OA2ClientProvider(new OA4MPIdentifierProvider(OA4MPIdentifierProvider.CLIENT_ID));
OA2ClientConverter converter = new OA2ClientConverter(clientProvider);
return converter;
}
Aggregations