summaryrefslogtreecommitdiffstats
path: root/ipalib/frontend.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r--ipalib/frontend.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py
index 61cba513..db399ba5 100644
--- a/ipalib/frontend.py
+++ b/ipalib/frontend.py
@@ -261,6 +261,13 @@ class Param(plugable.ReadOnly):
self.primary_key = self.__check_type(bool, 'primary_key')
lock(self)
+ def ispassword(self):
+ """
+ Return ``True`` is this Param is a password.
+ """
+ # FIXME: add unit test
+ return 'password' in self.flags
+
def __clone__(self, **override):
"""
Return a new `Param` instance similar to this one.