[New] Allow override of methods in DefaultStrolchSessionHandler

This commit is contained in:
Robert von Burg 2024-02-09 11:27:40 +01:00
parent c66446391a
commit a2c720ce48
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 2 additions and 2 deletions

View File

@ -302,7 +302,7 @@ public class DefaultStrolchSessionHandler extends StrolchComponent implements St
return certificate;
}
private void checkSessionsForTimeout() {
protected void checkSessionsForTimeout() {
ZonedDateTime maxKeepAliveTime = ZonedDateTime.now().minusMinutes(this.maxKeepAliveMinutes);
ZonedDateTime timeOutTime = ZonedDateTime.now().minusMinutes(this.sessionTtlMinutes);
@ -326,7 +326,7 @@ public class DefaultStrolchSessionHandler extends StrolchComponent implements St
}
}
private void sessionTimeout(Certificate certificate) {
protected void sessionTimeout(Certificate certificate) {
DBC.PRE.assertNotNull("Certificate must be given!", certificate);
Certificate removedCert = this.certificateMap.remove(certificate.getAuthToken());