public class DefaultKeyStoreLoader extends Object implements KeyStoreLoader
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)
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 © 2023 The Apache Software Foundation. All rights reserved.