directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lucas theisen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRSERVER-1936) Annotation based integration of password policy.
Date Fri, 13 Dec 2013 16:19:07 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-1936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13847606#comment-13847606
] 

lucas theisen commented on DIRSERVER-1936:
------------------------------------------

Attached you will find my implementation.  Here is an example usage:

{code:java}
    @Test
    @ApplyPasswordPolicy(
            pwdMustChange = true,
            pwdMinAge = 5,
            pwdCheckQuality = CheckQualityEnum.CHECK_ACCEPT )
    public void testMinAge() throws LdapException {
        ...
    }
{code}

> Annotation based integration of password policy.
> ------------------------------------------------
>
>                 Key: DIRSERVER-1936
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1936
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 2.0.0-M16
>            Reporter: lucas theisen
>            Priority: Trivial
>
> For my own unit testing purposes, I have added some additional annotations to add password
policies via annotations.  See attached classes.  It makes for cleaner tests with more obvious
settings.  You may or may not want to integrate this approach, but I thought i would offer.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message