/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.util.Functions$UnaryVoid
 *  com.l7tech.util.Pair
 */
package com.l7tech.server.security.keystore.ncipher;

import com.l7tech.server.security.keystore.KeystoreFile;
import com.l7tech.server.security.keystore.ncipher.NcipherKeyStoreData;
import com.l7tech.server.security.keystore.ncipher.e;
import com.l7tech.util.Functions;
import com.l7tech.util.Pair;
import java.security.KeyStore;

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

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    f(e e10, Object[] objectArray) {
        this.this$1 = e10;
        this.val$out = objectArray;
    }

    public void call(KeystoreFile keystoreFile) {
        try {
            if (this.this$1.val$transactionCallback != null) {
                this.this$1.val$transactionCallback.run();
            }
        }
        catch (Exception exception) {
            throw f.a(exception);
        }
        try {
            Pair<NcipherKeyStoreData, KeyStore> pair = this.this$1.this$0.a(keystoreFile.getDatabytes());
            this.this$1.this$0.t = (NcipherKeyStoreData)pair.left;
            this.this$1.this$0.s = (KeyStore)pair.right;
            this.this$1.this$0.v = System.currentTimeMillis();
            this.val$out[0] = this.this$1.val$mutator.call();
            keystoreFile.setDatabytes(this.this$1.this$0.a(this.this$1.this$0.t, this.this$1.this$0.s));
        }
        catch (Exception exception) {
            throw new RuntimeException(exception);
        }
    }

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

