package com.l7tech.server.security.keystore.sca;

import com.l7tech.objectmodel.UpdateException;
import com.l7tech.server.security.keystore.KeystoreFile;
import java.security.KeyStoreException;
import java.util.concurrent.Callable;

class a implements Callable<OUT> {
   final Runnable val$transactionCallback;
   final Callable val$mutator;
   final ScaSsgKeyStore this$0;

   a(ScaSsgKeyStore var1, Runnable var2, Callable var3) {
      this.this$0 = var1;
      this.val$transactionCallback = var2;
      this.val$mutator = var3;
   }

   @Override
   public Object call() throws Exception {
      Object[] var1 = new Object[]{null};

      try {
         synchronized (this.this$0) {
            KeystoreFile var3 = this.this$0.o.mutateKeystoreFile(this.this$0.getGoid(), new b(this, var1));
            this.this$0.r = var3.getVersion();
         }
      } catch (UpdateException var6) {
         throw new KeyStoreException(var6);
      }

      return var1[0];
   }
}
