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 KeyStoreLoader
FileNotFoundException
public InputStream trustStoreInputStream() throws FileNotFoundException
trustStoreInputStream
in interface KeyStoreLoader
FileNotFoundException
public String keyStorePassword()
keyStorePassword
in interface KeyStoreLoader
public String trustStorePassword()
trustStorePassword
in interface KeyStoreLoader
public String keyPassword()
keyPassword
in interface KeyStoreLoader
Copyright © 2022 The Apache Software Foundation. All rights reserved.