aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/RandomPasswordGenerator.java5
1 files changed, 3 insertions, 2 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 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())
+ );
}
}