Package org.eclipse.jetty.util.ssl
Class KeyStoreScanner
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.util.ssl.KeyStoreScanner
- All Implemented Interfaces:
Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
,Scanner.DiscreteListener
,Scanner.Listener
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Scanner
private final File
private static final Logger
private final SslContextFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
fileChanged
(String filename) void
fileRemoved
(String filename) int
void
reload()
void
scan()
void
setScanInterval
(int scanInterval) Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Field Details
-
LOG
-
sslContextFactory
-
keystoreFile
-
_scanner
-
-
Constructor Details
-
KeyStoreScanner
-
-
Method Details
-
fileAdded
- Specified by:
fileAdded
in interfaceScanner.DiscreteListener
-
fileChanged
- Specified by:
fileChanged
in interfaceScanner.DiscreteListener
-
fileRemoved
- Specified by:
fileRemoved
in interfaceScanner.DiscreteListener
-
scan
-
reload
-
getScanInterval
@ManagedAttribute("scanning interval to detect changes which need reloaded") public int getScanInterval() -
setScanInterval
public void setScanInterval(int scanInterval)
-