@Override
    public boolean isAcceptedByPasswordPolicy(final String password) {
        val policyPattern = casProperties.getAuthn().getPm().getCore().getPasswordPolicyPattern();
        LOGGER.debug("Checking provided password against pattern required for password policy: [{}]", policyPattern);
        return RegexUtils.find(policyPattern, password);
    }
This is {@link DefaultPasswordValidationService}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-pm-core/src/main/java/org/apereo/cas/pm/impl/DefaultPasswordValidationService.java