
edu.uiuc.ncsa.myproxy.oa4mp.server.admin.adminClient.AdminClientProvider Maven / Gradle / Ivy
The newest version!
package edu.uiuc.ncsa.myproxy.oa4mp.server.admin.adminClient;
import edu.uiuc.ncsa.myproxy.oa4mp.server.admin.transactions.OA4MPIdentifierProvider;
import edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl;
import java.util.Date;
/**
* Created by Jeff Gaynor
* on 10/20/16 at 1:08 PM
*/
public class AdminClientProvider extends IdentifiableProviderImpl {
public AdminClientProvider() {
super(new OA4MPIdentifierProvider(OA4MPIdentifierProvider.ADMIN_CLIENT_ID));
}
@Override
public V get(boolean createNewIdentifier) {
V v = (V) new AdminClient(createNewId(createNewIdentifier));
v.setCreationTS(new Date());
v.setDebugOn(true); // default for admin clients
return v;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy