All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.uiuc.ncsa.security.delegation.storage.ClientProvider Maven / Gradle / Ivy

package edu.uiuc.ncsa.security.delegation.storage;

import edu.uiuc.ncsa.security.core.Identifier;
import edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl;
import edu.uiuc.ncsa.security.core.util.IdentifierProvider;

import java.util.Date;

/**
 * 

Created by Jeff Gaynor
* on 4/4/12 at 2:54 PM */ public class ClientProvider extends IdentifiableProviderImpl { public ClientProvider(IdentifierProvider idProvider) { super(idProvider); } /** * Override this to return a different client. The {@link #get(boolean)} method calls this. * @param createNewIdentifier * @return */ protected V newClient(boolean createNewIdentifier){ return (V) new Client(createNewId(createNewIdentifier)); } @Override public V get(boolean createNewIdentifier) { V v = newClient(createNewIdentifier); v.setCreationTS(new Date()); return v; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy