PasswordPolicyImportPlugin.java revision 353
0N/A * The contents of this file are subject to the terms of the 0N/A * Common Development and Distribution License, Version 1.0 only 0N/A * (the "License"). You may not use this file except in compliance 0N/A * You can obtain a copy of the license at 0N/A * See the License for the specific language governing permissions 0N/A * and limitations under the License. 0N/A * When distributing Covered Code, include this CDDL HEADER in each 0N/A * file and include the License file at 0N/A * add the following below this CDDL HEADER, with the fields enclosed 0N/A * by brackets "[]" replaced with your own identifying * information: 0N/A * Portions Copyright [yyyy] [name of copyright owner] 0N/A * Portions Copyright 2006 Sun Microsystems, Inc. 0N/A * This class implements a Directory Server plugin that performs various 0N/A * password policy processing during an LDIF import. In particular, it ensures 0N/A * that all of the password values are properly encoded before they are stored. 0N/A * The fully-qualified name of this class for debugging purposes. 0N/A "org.opends.server.plugins.PasswordPolicyImportPlugin";
0N/A // The sets of password storage schemes for the auth password attributes. 0N/A // The sets of password storage schemes for the user password attributes. 0N/A * Creates a new instance of this Directory Server plugin. Every plugin must 0N/A * implement a default constructor (it is the only one that will be used to 0N/A * create plugins defined in the configuration), and every plugin constructor 0N/A * must call <CODE>super()</CODE> as its first element. 338N/A // Get the password policies from the Directory Server configuration. This 338N/A // is done in the constructor to allow the instance variables to be declared 338N/A // Make sure that the plugin has been enabled for the appropriate types. 338N/A // This is the only acceptable type. 0N/A // Create a list that we will use to hold new encoded values. 0N/A // Iterate through the list of auth password attributes. If any of them 0N/A // are present and their values are not encoded, then encode them with all 0N/A // appropriate schemes. 0N/A // Iterate through the list of user password attributes. If any of them 0N/A // are present and their values are not encoded, then encode them with all 0N/A // appropriate schemes.