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

import com.l7tech.util.Functions;
import java.io.IOException;
import java.io.OutputStream;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;

class b
implements Functions.UnaryVoid<OutputStream> {
    final KeyStore val$keystore;
    final char[] val$keystorePassword;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    b(KeyStore keyStore, char[] cArray) {
        this.val$keystore = keyStore;
        this.val$keystorePassword = cArray;
    }

    public void call(OutputStream outputStream) {
        try {
            this.val$keystore.store(outputStream, this.val$keystorePassword);
        }
        catch (KeyStoreException keyStoreException) {
            throw new RuntimeException(keyStoreException);
        }
        catch (IOException iOException) {
            throw new RuntimeException(iOException);
        }
        catch (NoSuchAlgorithmException noSuchAlgorithmException) {
            throw new RuntimeException(noSuchAlgorithmException);
        }
        catch (CertificateException certificateException) {
            throw new RuntimeException(certificateException);
        }
    }
}

