From d04314864e90fb138a050b44b86f15c655322714 Mon Sep 17 00:00:00 2001 From: edyta Date: Mon, 6 Apr 2020 07:20:28 +0200 Subject: Fix sonar issue RandomPasswordGenerator Issue-ID: AAF-1118 Signed-off-by: Edyta Krukowska Change-Id: Idfd7e957b6dda043d7343ddffe334c5400620217 --- .../client/certification/conversion/RandomPasswordGenerator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'certServiceClient/src/main/java') diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/RandomPasswordGenerator.java b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/RandomPasswordGenerator.java index ad3ae208..6515ea54 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/RandomPasswordGenerator.java +++ b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/RandomPasswordGenerator.java @@ -38,14 +38,15 @@ class RandomPasswordGenerator { //we are using new SecureRandom which provides //cryptographic security Password generate(int passwordLength) { - return new Password(RandomStringUtils.random( + return new Password(RandomStringUtils.random(//NOSONAR passwordLength, START_POSITION_IN_ASCII_CHARS, END_POSITION_IN_ASCII_CHARS, USE_LETTERS_ONLY, USE_NUMBERS_ONLY, SET_OF_CHARS, - new SecureRandom())); //NOSONAR + new SecureRandom()) + ); } } -- cgit 1.2.3-korg