package com.l7tech.server.search.processors;

import com.l7tech.objectmodel.EntityHeader;
import com.l7tech.objectmodel.EntityType;
import com.l7tech.objectmodel.FindException;
import com.l7tech.objectmodel.Goid;
import com.l7tech.security.cert.TrustedCert;
import com.l7tech.util.Functions.UnaryThrows;

class ai implements UnaryThrows<DependencyFinder.FindResults, Goid, FindException> {
   final RevocationCheckPolicyDependencyProcessor this$0;

   ai(RevocationCheckPolicyDependencyProcessor var1) {
      this.this$0 = var1;
   }

   public DependencyFinder.FindResults call(Goid var1) throws FindException {
      return DependencyFinder.FindResults.create(
         (TrustedCert)this.this$0.trustedCertManager.findByPrimaryKey(var1), new EntityHeader(var1, EntityType.TRUSTED_CERT, null, null)
      );
   }
}
