The KeyStoreScanner is used to monitor the KeyStore file used by the SslContextFactory.
It will reload the SslContextFactory if it detects that the KeyStore file has been modified.
If the TrustStore file needs to be changed, then this should be done before touching the KeyStore file,
the SslContextFactory#reload(Consumer) will only occur after the KeyStore file has been modified.
| Modifier and Type | Field and Description |
|---|---|
| private final Scanner | |
| private final Path | |
| private static final Logger | |
| private final SslContextFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | fileAdded(String
the filename)Path#toRealPath(LinkOption. as a string of the added fileOverrides default org. Called when a file is added. |
| public void | fileChanged(String
the filename)Path#toRealPath(LinkOption. as a string of the changed fileOverrides default org. Called when a file is changed. |
| public void | fileRemoved(String
the filename)Path#toRealPath(LinkOption. as a string of the removed fileOverrides default org. Called when a file is removed. |
| private Path | |
| public int | |
| public void | |
| public boolean | |
| public void |
| _scanner | back to summary |
|---|---|
| private final Scanner _scanner | |
| keystoreFile | back to summary |
|---|---|
| private final Path keystoreFile | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| sslContextFactory | back to summary |
|---|---|
| private final SslContextFactory sslContextFactory | |
| KeyStoreScanner | back to summary |
|---|---|
| public KeyStoreScanner(SslContextFactory sslContextFactory) | |
| fileAdded | back to summary |
|---|---|
| public void fileAdded(String filename) Overrides default org. Doc from org. Called when a file is added.
May not be called if
| |
| fileChanged | back to summary |
|---|---|
| public void fileChanged(String filename) Overrides default org. Doc from org. Called when a file is changed.
May not be called if
| |
| fileRemoved | back to summary |
|---|---|
| public void fileRemoved(String filename) Overrides default org. Doc from org. Called when a file is removed.
May not be called if
| |
| getRealKeyStorePath | back to summary |
|---|---|
| private Path getRealKeyStorePath() | |
| getScanInterval | back to summary |
|---|---|
public int getScanInterval()
| |
| reload | back to summary |
|---|---|
public void reload()
| |
| scan | back to summary |
|---|---|
public boolean scan(long waitMillis)
| |
| setScanInterval | back to summary |
|---|---|
| public void setScanInterval(int scanInterval) | |