T - type of SSLContextpublic abstract class SslContextAutoRefreshBuilder<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
lastRefreshTime |
protected long |
refreshTime |
| Constructor and Description |
|---|
SslContextAutoRefreshBuilder(long certRefreshInSec) |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
It updates SSLContext at every configured refresh time and returns updated SSLContext.
|
protected abstract T |
getSslContext()
Returns cached SSLContext.
|
protected abstract boolean |
needUpdate()
Returns whether the key files modified after a refresh time, and context need update.
|
protected abstract T |
update()
updates and returns cached SSLContext.
|
protected final long refreshTime
protected long lastRefreshTime
public SslContextAutoRefreshBuilder(long certRefreshInSec)
protected abstract T update() throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionprotected abstract T getSslContext()
protected abstract boolean needUpdate()
public T get()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.