aboutsummaryrefslogtreecommitdiffstats
path: root/certServiceClient/src/main/java
diff options
context:
space:
mode:
authoredyta <edyta.krukowska@nokia.com>2020-04-02 10:57:18 +0200
committeredyta <edyta.krukowska@nokia.com>2020-04-02 12:05:03 +0200
commit30aa650ccfbd6dd2e98d2a1001e418c2a3c39fd3 (patch)
tree2cdf5cd7f486b34611d3aa40d2a4235cf410f632 /certServiceClient/src/main/java
parent25f9d7f0a20120e98a8be70fd97d7dd1f2cc9ba8 (diff)
Fix sonar secure issue RandomPasswordGenerator
Issue-ID: AAF-1118 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I687b4af22ae07ce6d0bbbc5abfdf53635f30f54f
Diffstat (limited to 'certServiceClient/src/main/java')
-rw-r--r--certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/RandomPasswordGenerator.java4
1 files changed, 4 insertions, 0 deletions
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 5db7b26f..aa7d6151 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
@@ -33,7 +33,11 @@ class RandomPasswordGenerator {
private static final boolean USE_LETTERS_ONLY = false;
private static final boolean USE_NUMBERS_ONLY = false;
+ // We are excluding this line in Sonar due to fact that
+ //we are using new SecureRandom which provides
+ //cryptographic security
Password generate(int passwordLength) {
+ //NOSONAR
return new Password(RandomStringUtils.random(
passwordLength,
START_POSITION_IN_ASCII_CHARS,