From d3f125d4cffea5caff7edf2d2f1d64183fbf55b9 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 28 Sep 2011 16:54:52 +0000
Subject: [PATCH] Issue OPENDJ-262: Implement pass through authentication (PTA)

---
 opends/src/server/org/opends/server/extensions/LDAPPassThroughAuthenticationPolicyFactory.java |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/extensions/LDAPPassThroughAuthenticationPolicyFactory.java b/opends/src/server/org/opends/server/extensions/LDAPPassThroughAuthenticationPolicyFactory.java
index 8dece5f..8539712 100644
--- a/opends/src/server/org/opends/server/extensions/LDAPPassThroughAuthenticationPolicyFactory.java
+++ b/opends/src/server/org/opends/server/extensions/LDAPPassThroughAuthenticationPolicyFactory.java
@@ -1523,6 +1523,16 @@
      *         connection factories to determine when they are online.
      */
     ScheduledExecutorService getScheduledExecutorService();
+
+
+
+    /**
+     * Returns the current time in milli-seconds in order to perform cached
+     * password expiration checks.
+     *
+     * @return The current time in milli-seconds.
+     */
+    long getCurrentTimeMillis();
   }
 
 
@@ -2125,6 +2135,13 @@
       return scheduler;
     }
 
+
+
+    public long getCurrentTimeMillis()
+    {
+      return System.currentTimeMillis();
+    }
+
   };
 
 

--
Gitblit v1.10.0