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:
Noble Paul 2016-01-04 09:38:46 +00:00
parent b44b6d5eba
commit d66bc6b4be
2 changed files with 4 additions and 1 deletions

View File

@ -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
----------------------

View File

@ -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;