updated pmd checks

This commit is contained in:
Ali Oezyetimoglu 2023-08-18 15:14:10 +02:00
parent 550c05e93b
commit a79165bb09
2 changed files with 6 additions and 1 deletions

View File

@ -9,8 +9,9 @@
<rule ref="category/java/errorprone.xml">
<exclude name="DataflowAnomalyAnalysis"/>
<exclude name="MissingSerialVersionUID"/>
<exclude name="BeanMembersShouldSerialize"/>
<exclude name="NonSerializableClass"/>
<exclude name="AvoidDuplicateLiterals"/>
<exclude name="AvoidLiteralsInIfCondition"/>
<exclude name="TestClassWithoutTestCases"/>
</rule>
</ruleset>

View File

@ -297,6 +297,10 @@ public class TenantManagementService implements TenantProvider {
realm.setUsers(users.stream().map(this::toUserRepresentation).collect(Collectors.toList()));
var policyString = "digits and length and lowerCase and notEmail and notUsername and specialChars and upperCase";
// PasswordPolicy passwordPolicy = PasswordPolicy.parse(session, policyString);
realm.setPasswordPolicy(policyString);
keycloak.getAdminClient().realms().create(realm);
}