/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: SiteIDValidator.java,v 1.3 2008/06/25 05:44:06 qcheng Exp $
*
*/
/**
* Portions Copyrighted 2011-2016 ForgeRock AS.
*/
/**
* The class <code>ServerIDValidator</code> is used to validate the correct
* string format for the attribute iplanet-am-platform-server-list in
* iPlanetAMPlatformService. e.g. proto://host.port|xx where xx is an unique
* identifier and could any two bytes value
*/
"iplanet-am-platform-server-list";
/**
* Validates the values for the attribute iplanet-am-platform-server-list.
*
* @param values
* the set of values to be validated
* @return true if all of the values are valid; false otherwise
*/
return true;
}
boolean serverLookup = getServerDetails();
return false;
}
return false;
} else {
}
return false;
} else {
}
if (serverLookup) {
return false;
}
return false;
}
} else {
if (debug.messageEnabled()) {
+ "Server validation cannot be performed");
}
}
}
return true;
}
/**
* Internal method for getting the Server list
*
* @return true if Server list is obtained, false otherwise
*/
private boolean getServerDetails() {
if (!serverAddrSet.isEmpty()) {
return true;
}
try {
serverVal, "|");
serverId, "|");
}
}
}
}
return true;
} catch (SMSException se) {
if (debug.messageEnabled()) {
"config: SMSException", se);
}
} catch (SSOException ssoe) {
if (debug.messageEnabled()) {
"config: SSOException", ssoe);
}
}
return false;
}
}