de.dentrassi.crypto.pem.PemBundleKeyStore Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2018, 2019 Red Hat Inc and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jens Reimann - initial API and implementation
*/
package de.dentrassi.crypto.pem;
import java.io.IOException;
import java.io.InputStream;
import java.security.cert.CertificateException;
import java.util.Map;
public final class PemBundleKeyStore {
private PemBundleKeyStore() {
}
public static final class Immutable extends AbstractReadOnlyKeyStore {
@Override
protected Map load(final InputStream stream) throws CertificateException, IOException {
return PemUtils.loadFrom(stream, false);
}
}
public static final class Mutable extends AbstractMutablePemKeyStore {
@Override
protected Map load(final InputStream stream) throws CertificateException, IOException {
return PemUtils.loadFrom(stream, false);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy