From 3883d2297c3422d8aec2b40530c2d2b0a00ee57d Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Thu, 25 Aug 2011 16:27:28 +0000
Subject: [PATCH] Final refactoring work for OPENDJ-262: Implement pass through authentication (PTA)
---
opends/src/server/org/opends/server/core/PasswordPolicy.java | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/PasswordPolicy.java b/opends/src/server/org/opends/server/core/PasswordPolicy.java
index e937944..884839b 100644
--- a/opends/src/server/org/opends/server/core/PasswordPolicy.java
+++ b/opends/src/server/org/opends/server/core/PasswordPolicy.java
@@ -37,6 +37,9 @@
import org.opends.server.admin.std.meta.PasswordPolicyCfgDefn.*;
import org.opends.server.api.*;
import org.opends.server.types.AttributeType;
+import org.opends.server.types.DN;
+import org.opends.server.types.DirectoryException;
+import org.opends.server.types.Entry;
@@ -58,6 +61,13 @@
/**
+ * {@inheritDoc}
+ */
+ public abstract DN getDN();
+
+
+
+ /**
* Indicates whether the associated password attribute uses the auth password
* syntax.
*
@@ -607,4 +617,24 @@
*/
public abstract StateUpdateFailurePolicy getStateUpdateFailurePolicy();
+
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isPasswordPolicy()
+ {
+ return true;
+ }
+
+
+
+ /**
+ * {@inheritDoc}
+ */
+ public PasswordPolicyState createAuthenticationPolicyState(Entry userEntry,
+ long time) throws DirectoryException
+ {
+ return new PasswordPolicyState(this, userEntry, time);
+ }
}
--
Gitblit v1.10.0