public class DefaultKeyStoreLoader extends Object implements KeyStoreLoader
KeyStoreLoader implementation that uses local files.
| Constructor and Description |
|---|
DefaultKeyStoreLoader(String keystore)
Creates a DefaultKeystoreLoader that uses the same file for both the keystore and truststore.
|
DefaultKeyStoreLoader(String keystore,
String truststore)
Creates a DefaultKeystoreLoader that uses separate files for the keystore and truststore.
|
| Modifier and Type | Method and Description |
|---|---|
String |
keyPassword() |
InputStream |
keyStoreInputStream() |
String |
keyStorePassword() |
void |
setKeyPassword(String keyPassword) |
void |
setKeyStorePassword(String keyStorePassword) |
void |
setTrustStorePassword(String trustStorePassword) |
InputStream |
trustStoreInputStream() |
String |
trustStorePassword() |
public DefaultKeyStoreLoader(String keystore)
Creates a DefaultKeystoreLoader that uses the same file for both the keystore and truststore.
keystore - path to keystore filepublic void setKeyStorePassword(String keyStorePassword)
public void setTrustStorePassword(String trustStorePassword)
public void setKeyPassword(String keyPassword)
public InputStream keyStoreInputStream() throws FileNotFoundException
keyStoreInputStream in interface KeyStoreLoaderFileNotFoundExceptionpublic InputStream trustStoreInputStream() throws FileNotFoundException
trustStoreInputStream in interface KeyStoreLoaderFileNotFoundExceptionpublic String keyStorePassword()
keyStorePassword in interface KeyStoreLoaderpublic String trustStorePassword()
trustStorePassword in interface KeyStoreLoaderpublic String keyPassword()
keyPassword in interface KeyStoreLoaderCopyright © 2021 The Apache Software Foundation. All rights reserved.