commit | d04314864e90fb138a050b44b86f15c655322714 | [log] [tgz] |
---|---|---|
author | edyta <edyta.krukowska@nokia.com> | Mon Apr 06 07:20:28 2020 +0200 |
committer | edyta <edyta.krukowska@nokia.com> | Mon Apr 06 09:25:33 2020 +0200 |
tree | 5b2fcf752121554740016f4ce7d6177287ae1549 | |
parent | 641e2a44fbb684d1cdaa8f0f198bfff372413024 [diff] |
Fix sonar issue RandomPasswordGenerator Issue-ID: AAF-1118 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: Idfd7e957b6dda043d7343ddffe334c5400620217
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 ad3ae20..6515ea5 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 @@ //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()) + ); } }