Hi, On Sun, Dec 28, 2014 at 1:02 PM, Felix Schumacher < [email protected]> wrote:
> Hi all, > > I have two questions regarding JMeterKeyStore. > > 1) in getAlias(int) we throw an ArrayIndexOutOfBoundsException, when the > parameter is outside of the used array. Isn't this the default behaviour of > the next statement? Maybe this should have been an IllegalArgumentException? > Yes maybe it would be better. > > 2) it is not clear to me, what the startIndex and endIndex field should > contain. I would have thought, that they refer to the number of keys/certs > in the loaded store, but in the method load(InputStream, string) the used > index gets only incremented, when a key is found. Is this the intended > behaviour? > index refers to number of private Keys in loaded store, it is only incremented for private keys. startIndex and endIndex are used to load keys from startIndex to endIndex. > > Regards > Felix > Regards Philippe
