abstract class StandardTypeFileKeyStoreLoader extends FileKeyStoreLoader
KeyStoreLoader
which load the key/trust stores from files on
a filesystem using standard KeyStore
types like JKS or PKCS12.
This file has been copied from the Apache ZooKeeper project.Modifier and Type | Class and Description |
---|---|
protected static class |
StandardTypeFileKeyStoreLoader.SupportedStandardKeyFormat |
FileKeyStoreLoader.Builder<T extends FileKeyStoreLoader>
Modifier and Type | Field and Description |
---|---|
private static char[] |
EMPTY_CHAR_ARRAY |
protected StandardTypeFileKeyStoreLoader.SupportedStandardKeyFormat |
format |
keyStorePassword, keyStorePath, trustStorePassword, trustStorePath
Constructor and Description |
---|
StandardTypeFileKeyStoreLoader(String keyStorePath,
String trustStorePath,
char[] keyStorePassword,
char[] trustStorePassword,
StandardTypeFileKeyStoreLoader.SupportedStandardKeyFormat format) |
Modifier and Type | Method and Description |
---|---|
private KeyStore |
keyStoreInstance() |
KeyStore |
loadKeyStore() |
KeyStore |
loadTrustStore() |
private static char[] |
passwordStringToCharArray(char[] password) |
private static final char[] EMPTY_CHAR_ARRAY
protected final StandardTypeFileKeyStoreLoader.SupportedStandardKeyFormat format
StandardTypeFileKeyStoreLoader(String keyStorePath, String trustStorePath, char[] keyStorePassword, char[] trustStorePassword, StandardTypeFileKeyStoreLoader.SupportedStandardKeyFormat format)
public KeyStore loadKeyStore() throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
public KeyStore loadTrustStore() throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
private KeyStore keyStoreInstance() throws KeyStoreException
KeyStoreException
private static char[] passwordStringToCharArray(char[] password)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.