/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.objectmodel.UpdateException
 */
package com.l7tech.server.security.keystore.sca;

import com.l7tech.objectmodel.UpdateException;
import com.l7tech.server.security.keystore.KeystoreFile;
import com.l7tech.server.security.keystore.sca.ScaSsgKeyStore;
import com.l7tech.server.security.keystore.sca.b;
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;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    a(ScaSsgKeyStore scaSsgKeyStore, Runnable runnable, Callable callable) {
        this.this$0 = scaSsgKeyStore;
        this.val$transactionCallback = runnable;
        this.val$mutator = callable;
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     */
    @Override
    public OUT call() throws Exception {
        Object[] objectArray = new Object[]{null};
        try {
            ScaSsgKeyStore scaSsgKeyStore = this.this$0;
            synchronized (scaSsgKeyStore) {
                KeystoreFile keystoreFile = this.this$0.o.mutateKeystoreFile(this.this$0.getGoid(), new b(this, objectArray));
                this.this$0.r = keystoreFile.getVersion();
            }
        }
        catch (UpdateException updateException) {
            throw new KeyStoreException(updateException);
        }
        return objectArray[0];
    }
}

