updated pmd checks
This commit is contained in:
parent
550c05e93b
commit
a79165bb09
@ -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>
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user