Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 98F5610D89 for ; Fri, 24 Jan 2014 21:50:48 +0000 (UTC) Received: (qmail 54498 invoked by uid 500); 24 Jan 2014 21:50:44 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 54425 invoked by uid 500); 24 Jan 2014 21:50:41 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 54375 invoked by uid 99); 24 Jan 2014 21:50:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jan 2014 21:50:39 +0000 Date: Fri, 24 Jan 2014 21:50:39 +0000 (UTC) From: "lucas theisen (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (DIRAPI-169) Formalize the contract of PasswordPolicyResponse by stating that -1 is returned if no value is set. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRAPI-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] lucas theisen resolved DIRAPI-169. ---------------------------------- Resolution: Fixed Fix Version/s: 1.0.0-M21 Revision 1561204 > Formalize the contract of PasswordPolicyResponse by stating that -1 is returned if no value is set. > --------------------------------------------------------------------------------------------------- > > Key: DIRAPI-169 > URL: https://issues.apache.org/jira/browse/DIRAPI-169 > Project: Directory Client API > Issue Type: Improvement > Reporter: lucas theisen > Priority: Trivial > Fix For: 1.0.0-M21 > > > The rfc makes timeBeforeExpiration, and graceAuthNsRemaining optional, but the PasswordPolicyResponse has them as primitives (no null). The best value for unspecified is -1 and that is what the impl is currently returning, but it would be good to make that explicit in the javadoc (to avoid having to check for any value < 0). -- This message was sent by Atlassian JIRA (v6.1.5#6160)