001package com.identityworksllc.iiq.common.password; 002 003import sailpoint.api.passwordConstraints.PasswordConstraint; 004 005/** 006 * An extended password constraint interface that includes a method to get a description 007 */ 008public interface ExtendedPasswordConstraint extends PasswordConstraint { 009 /** 010 * Returns a description of the password constraint, used by the UI to display 011 * the constraint to the user. 012 * 013 * @return A description of the password constraint 014 */ 015 String getDescription(); 016 017 /** 018 * Configures the admin flag for this constraint. This may be used to skip a constraint 019 * if the admin is changing the password for a user. 020 * 021 * @param isAdmin true if the current check is being done by an admin, false otherwise. 022 */ 023 void setAdmin(boolean isAdmin); 024}