add javadoc for KeyStoreScanner class
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
a83844df32
commit
2541f1f648
|
@ -3,7 +3,7 @@
|
||||||
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
||||||
<Call name="addBean">
|
<Call name="addBean">
|
||||||
<Arg>
|
<Arg>
|
||||||
<New id="sslKeyStoreScanner" class="org.eclipse.jetty.util.ssl.KeyStoreScanner">
|
<New id="keyStoreScanner" class="org.eclipse.jetty.util.ssl.KeyStoreScanner">
|
||||||
<Arg><Ref refid="sslContextFactory"/></Arg>
|
<Arg><Ref refid="sslContextFactory"/></Arg>
|
||||||
<Set name="scanInterval"><Property name="jetty.sslContext.reload.scanInterval" default="1"/></Set>
|
<Set name="scanInterval"><Property name="jetty.sslContext.reload.scanInterval" default="1"/></Set>
|
||||||
</New>
|
</New>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
DO NOT EDIT - See: https://www.eclipse.org/jetty/documentation/current/startup-modules.html
|
# DO NOT EDIT - See: https://www.eclipse.org/jetty/documentation/current/startup-modules.html
|
||||||
|
|
||||||
[description]
|
[description]
|
||||||
Enables the SSL keystore to be reloaded after any changes are detected on the file system.
|
Enables the SSL keystore to be reloaded after any changes are detected on the file system.
|
||||||
|
|
|
@ -21,6 +21,7 @@ package org.eclipse.jetty.util.ssl;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
import java.util.function.Consumer;
|
||||||
|
|
||||||
import org.eclipse.jetty.util.Scanner;
|
import org.eclipse.jetty.util.Scanner;
|
||||||
import org.eclipse.jetty.util.annotation.ManagedAttribute;
|
import org.eclipse.jetty.util.annotation.ManagedAttribute;
|
||||||
|
@ -29,6 +30,12 @@ import org.eclipse.jetty.util.component.ContainerLifeCycle;
|
||||||
import org.eclipse.jetty.util.log.Log;
|
import org.eclipse.jetty.util.log.Log;
|
||||||
import org.eclipse.jetty.util.log.Logger;
|
import org.eclipse.jetty.util.log.Logger;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>The {@link KeyStoreScanner} is used to monitor the KeyStore file used by the {@link SslContextFactory}.
|
||||||
|
* It will reload the {@link SslContextFactory} if it detects that the KeyStore file has been modified.</p>
|
||||||
|
* <p>If the TrustStore file needs to be changed, then this should be done before touching the KeyStore file,
|
||||||
|
* the {@link SslContextFactory#reload(Consumer)} will only occur after the KeyStore file has been modified.</p>
|
||||||
|
*/
|
||||||
public class KeyStoreScanner extends ContainerLifeCycle implements Scanner.DiscreteListener
|
public class KeyStoreScanner extends ContainerLifeCycle implements Scanner.DiscreteListener
|
||||||
{
|
{
|
||||||
private static final Logger LOG = Log.getLogger(KeyStoreScanner.class);
|
private static final Logger LOG = Log.getLogger(KeyStoreScanner.class);
|
||||||
|
|
Loading…
Reference in New Issue