All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.dbstarll.utils.lang.security.KeyStoreBuilder Maven / Gradle / Ivy

The newest version!
package io.github.dbstarll.utils.lang.security;

import java.io.IOException;
import java.io.InputStream;
import java.security.KeyStore;
import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;

public final class KeyStoreBuilder extends AbstractSecurityBuilder {
    public KeyStoreBuilder(KeyStoreAlgorithm algorithm) throws NoSuchAlgorithmException, InstanceException {
        super(KeyStore.class, algorithm);
    }

    public KeyStoreBuilder load(InputStream stream, char[] password)
            throws NoSuchAlgorithmException, CertificateException, IOException {
        type.load(stream, password);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy