package com.l7tech.server.identity.cert;

import com.l7tech.objectmodel.FindException;
import com.l7tech.objectmodel.Goid;
import com.l7tech.security.cert.TrustedCert;
import com.l7tech.security.cert.TrustedCert.TrustedFor;
import com.l7tech.util.Cacheable;
import java.util.Collection;

public interface TrustedCertCache {
   @Cacheable(relevantArg = 0, maxAge = 5000)
   TrustedCert findByPrimaryKey(Goid var1) throws FindException;

   @Cacheable(relevantArg = 0, maxAge = 5000)
   Collection<TrustedCert> findBySubjectDn(String var1) throws FindException;

   @Cacheable(relevantArg = 0, maxAge = 5000)
   Collection<TrustedCert> findByName(String var1) throws FindException;

   @Cacheable(relevantArg = 0, maxAge = 120000)
   Collection<TrustedCert> findByTrustFlag(TrustedFor var1) throws FindException;
}
