slf4j 1.7.7
This commit is contained in:
parent
1b7bb246c2
commit
f123c0a62e
2
pom.xml
2
pom.xml
|
@ -71,7 +71,7 @@
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<springVersion>4.0.3.RELEASE</springVersion>
|
<springVersion>4.0.3.RELEASE</springVersion>
|
||||||
<slf4jVersion>1.7.5</slf4jVersion>
|
<slf4jVersion>1.7.7</slf4jVersion>
|
||||||
<log4j2Version>2.0-rc1</log4j2Version>
|
<log4j2Version>2.0-rc1</log4j2Version>
|
||||||
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<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.policy.UserSecurityPolicy;
|
||||||
import org.apache.archiva.redback.users.User;
|
import org.apache.archiva.redback.users.User;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.PostConstruct;
|
import javax.annotation.PostConstruct;
|
||||||
|
@ -36,6 +38,8 @@ public class MustHavePasswordRule
|
||||||
{
|
{
|
||||||
public static final String MISSING_PASSWORD_VIOLATION = "user.password.violation.missing";
|
public static final String MISSING_PASSWORD_VIOLATION = "user.password.violation.missing";
|
||||||
|
|
||||||
|
private final Logger logger = LoggerFactory.getLogger( getClass() );
|
||||||
|
|
||||||
public void setUserSecurityPolicy( UserSecurityPolicy policy )
|
public void setUserSecurityPolicy( UserSecurityPolicy policy )
|
||||||
{
|
{
|
||||||
// Ignore, policy not needed in this rule.
|
// Ignore, policy not needed in this rule.
|
||||||
|
@ -53,5 +57,6 @@ public class MustHavePasswordRule
|
||||||
public void initialize()
|
public void initialize()
|
||||||
{
|
{
|
||||||
enabled = config.getBoolean( UserConfigurationKeys.POLICY_PASSWORD_RULE_MUSTHAVE_ENABLED );
|
enabled = config.getBoolean( UserConfigurationKeys.POLICY_PASSWORD_RULE_MUSTHAVE_ENABLED );
|
||||||
|
logger.debug( "{} enabled: {}", UserConfigurationKeys.POLICY_PASSWORD_RULE_MUSTHAVE_ENABLED, enabled );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue