Search in sources :

Example 1 with BaseClientConverter

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;
}
Also used : BaseClientConverter(edu.uiuc.ncsa.security.delegation.storage.impl.BaseClientConverter) OA4MPIdentifierProvider(edu.uiuc.ncsa.myproxy.oa4mp.server.admin.transactions.OA4MPIdentifierProvider)

Aggregations

OA4MPIdentifierProvider (edu.uiuc.ncsa.myproxy.oa4mp.server.admin.transactions.OA4MPIdentifierProvider)1 BaseClientConverter (edu.uiuc.ncsa.security.delegation.storage.impl.BaseClientConverter)1