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

import com.l7tech.server.security.keystore.KeystoreFile;
import com.l7tech.util.Pair;
import com.l7tech.util.Functions.UnaryVoid;
import java.security.KeyStore;

class f implements UnaryVoid<KeystoreFile> {
   final Object[] val$out;
   final e this$1;

   f(e var1, Object[] var2) {
      this.this$1 = var1;
      this.val$out = var2;
   }

   public void call(KeystoreFile var1) {
      try {
         if (this.this$1.val$transactionCallback != null) {
            this.this$1.val$transactionCallback.run();
         }
      } catch (Exception var4) {
         throw a(var4);
      }

      try {
         Pair var2 = this.this$1.this$0.a(var1.getDatabytes());
         this.this$1.this$0.t = (NcipherKeyStoreData)var2.left;
         this.this$1.this$0.s = (KeyStore)var2.right;
         this.this$1.this$0.v = System.currentTimeMillis();
         this.val$out[0] = this.this$1.val$mutator.call();
         var1.setDatabytes(this.this$1.this$0.a(this.this$1.this$0.t, this.this$1.this$0.s));
      } catch (Exception var3) {
         throw new RuntimeException(var3);
      }
   }

   private static Exception a(Exception var0) {
      return var0;
   }
}
