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

import com.l7tech.server.security.keystore.KeystoreFile;
import com.l7tech.server.security.keystore.software.DatabasePkcs12SsgKeyStore;
import com.l7tech.util.Functions;
import java.security.KeyStore;
import java.security.KeyStoreException;

class a
implements Functions.UnaryVoid<KeystoreFile> {
    final KeyStore[] val$newKs;
    final DatabasePkcs12SsgKeyStore this$0;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    a(DatabasePkcs12SsgKeyStore databasePkcs12SsgKeyStore, KeyStore[] keyStoreArray) {
        this.this$0 = databasePkcs12SsgKeyStore;
        this.val$newKs = keyStoreArray;
    }

    public void call(KeystoreFile keystoreFile) {
        byte[] byArray = keystoreFile.getDatabytes();
        try {
            KeyStore keyStore = this.this$0.a(byArray);
            if (null == byArray) {
                byArray = this.this$0.a(keyStore);
                keystoreFile.setDatabytes(byArray);
            }
            this.val$newKs[0] = keyStore;
        }
        catch (KeyStoreException keyStoreException) {
            throw new RuntimeException(keyStoreException.getMessage(), keyStoreException);
        }
    }
}

