slf4j 1.7.7
This commit is contained in:
parent
1b7bb246c2
commit
f123c0a62e
2
pom.xml
2
pom.xml
|
@ -71,7 +71,7 @@
|
|||
|
||||
<properties>
|
||||
<springVersion>4.0.3.RELEASE</springVersion>
|
||||
<slf4jVersion>1.7.5</slf4jVersion>
|
||||
<slf4jVersion>1.7.7</slf4jVersion>
|
||||
<log4j2Version>2.0-rc1</log4j2Version>
|
||||
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
|
|
@ -21,6 +21,8 @@ import org.apache.archiva.redback.policy.PasswordRuleViolations;
|
|||
import org.apache.archiva.redback.policy.UserSecurityPolicy;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
|
@ -30,12 +32,14 @@ import javax.annotation.PostConstruct;
|
|||
*
|
||||
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
|
||||
*/
|
||||
@Service("passwordRule#must-have")
|
||||
@Service( "passwordRule#must-have" )
|
||||
public class MustHavePasswordRule
|
||||
extends AbstractPasswordRule
|
||||
{
|
||||
public static final String MISSING_PASSWORD_VIOLATION = "user.password.violation.missing";
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger( getClass() );
|
||||
|
||||
public void setUserSecurityPolicy( UserSecurityPolicy policy )
|
||||
{
|
||||
// Ignore, policy not needed in this rule.
|
||||
|
@ -53,5 +57,6 @@ public class MustHavePasswordRule
|
|||
public void initialize()
|
||||
{
|
||||
enabled = config.getBoolean( UserConfigurationKeys.POLICY_PASSWORD_RULE_MUSTHAVE_ENABLED );
|
||||
logger.debug( "{} enabled: {}", UserConfigurationKeys.POLICY_PASSWORD_RULE_MUSTHAVE_ENABLED, enabled );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue