mirror of https://github.com/apache/lucene.git
SOLR-8470: Make TTL of PKIAuthenticationPlugin's tokens configurable through a system property
(pkiauth.ttl) git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1722811 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b44b6d5eba
commit
d66bc6b4be
|
@ -268,6 +268,9 @@ New Features
|
|||
* SOLR-8220: Read field from DocValues for non stored fields.
|
||||
(Keith Laban, yonik, Erick Erickson, Ishan Chattopadhyaya, shalin)
|
||||
|
||||
* SOLR-8470: Make TTL of PKIAuthenticationPlugin's tokens configurable through a system property
|
||||
(pkiauth.ttl) (noble)
|
||||
|
||||
Bug Fixes
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ public class PKIAuthenticationPlugin extends AuthenticationPlugin implements Htt
|
|||
private final Map<String, PublicKey> keyCache = new ConcurrentHashMap<>();
|
||||
private final CryptoKeys.RSAKeyPair keyPair = new CryptoKeys.RSAKeyPair();
|
||||
private final CoreContainer cores;
|
||||
private final int MAX_VALIDITY = 5000;
|
||||
private final int MAX_VALIDITY = Integer.parseInt(System.getProperty("pkiauth.ttl", "5000"));
|
||||
private final String myNodeName;
|
||||
|
||||
private boolean interceptorRegistered = false;
|
||||
|
|
Loading…
Reference in New Issue