public class KeyStoreUtils extends Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
logger |
Constructor and Description |
---|
KeyStoreUtils() |
Modifier and Type | Method and Description |
---|---|
static KeyStore |
getKeyStore(String keyStoreType)
Returns an empty KeyStore backed by the appropriate provider
|
static String |
getKeyStoreProvider(String keyStoreType)
Returns the provider that will be used for the given keyStoreType
|
static KeyStore |
getTrustStore(String trustStoreType)
Returns an empty KeyStore intended for use as a TrustStore backed by the appropriate provider
|
public static String getKeyStoreProvider(String keyStoreType)
keyStoreType
- the keyStoreTypepublic static KeyStore getKeyStore(String keyStoreType) throws KeyStoreException
keyStoreType
- the keyStoreTypeKeyStoreException
- if a KeyStore of the given type cannot be instantiatedpublic static KeyStore getTrustStore(String trustStoreType) throws KeyStoreException
trustStoreType
- the trustStoreTypeKeyStoreException
- if a KeyStore of the given type cannot be instantiatedCopyright © 2018 Apache NiFi Project. All rights reserved.