Class IdentityAttributeConstraint
- java.lang.Object
-
- sailpoint.api.passwordConstraints.AbstractPasswordConstraint
-
- sailpoint.api.passwordConstraints.PasswordConstraintAttribute
-
- com.identityworksllc.iiq.common.password.IdentityAttributeConstraint
-
- All Implemented Interfaces:
ExtendedPasswordConstraint,sailpoint.api.passwordConstraints.PasswordConstraint
public class IdentityAttributeConstraint extends sailpoint.api.passwordConstraints.PasswordConstraintAttribute implements ExtendedPasswordConstraint
Extends the OOTB PasswordConstraintAttribute to create a constraint for a single identity attribute.(The existing one is far too broad and will include attributes we really don’t care about, like flags with value of “true” and such.)
-
-
Constructor Summary
Constructors Constructor Description IdentityAttributeConstraint(sailpoint.object.Identity target, String attributeName)Constructs a new IdentityAttributeConstraint for the given identity and attribute name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Returns a description of the password constraint, used by the UI to display the constraint to the user.voidsetAdmin(boolean isAdmin)Sets the admin flag for this constraint.-
Methods inherited from class sailpoint.api.passwordConstraints.AbstractPasswordConstraint
generate, getRandom, getRandomFromSet, initRandom
-
-
-
-
Constructor Detail
-
IdentityAttributeConstraint
public IdentityAttributeConstraint(sailpoint.object.Identity target, String attributeName)
Constructs a new IdentityAttributeConstraint for the given identity and attribute name.- Parameters:
target- The identity to check againstattributeName- The name of the attribute to check against
-
-
Method Detail
-
getDescription
public String getDescription()
Description copied from interface:ExtendedPasswordConstraintReturns a description of the password constraint, used by the UI to display the constraint to the user.- Specified by:
getDescriptionin interfaceExtendedPasswordConstraint- Returns:
- A description of the password constraint
-
setAdmin
public void setAdmin(boolean isAdmin)
Sets the admin flag for this constraint.In our case, this is a no-op, because we want this constraint to still apply when an admin is changing the password.
- Specified by:
setAdminin interfaceExtendedPasswordConstraint- Parameters:
isAdmin- true if the current check is being done by an admin, false otherwise.
-
-