IPConditionHelper.java revision 0be6372051459d02acfe49de71e8d6653f0b412e
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 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: IPConditionHelper.java,v 1.2 2008/06/25 05:43:02 qcheng Exp $
*
*/
/*
* Portions Copyrighted [2011-2013] [ForgeRock Inc]
*/
public class IPConditionHelper {
private enum IPVersion {
}
private IPConditionHelper() {
}
public static IPConditionHelper getInstance() {
return instance;
}
if (bCreate) {
} else {
}
return AMAdminUtils.getStringFromInputStream(
}
public String getMissingValuesMessage() {
return "policy.condition.missing.ip.dns.message";
}
public void setPropertiesValues(
) {
// Check which IP version we are working with
// Get IP_Version
} else {
ipVer = "IPv4";
}
}
// add IPversion to propertySheetModel
}
} else {
}
}
}
}
}
public Map getConditionValues(
) {
}
}
} else { // must be IPv6
}
return map;
}
}
}
return map;
}
}
}
return map;
}
for (int i = 1; i < 9; i++) {
if (i > 1 && i <= 5) {
} else if(i > 5 ){
buff.append((String)propertySheetModel.getValue(NOTATION + (i-1))); // :: or . depending if IPv6 hybrid notation
}
node = "0";
}
}
}
private String getIPv4Address(
) {
for (int i = 1; i < 5; i++) {
if (i > 1) {
}
node = "0";
}
}
}
private void setIPVersion(String propName, String ipVersion, AMPropertySheetModel propertySheetModel) {
}
private void setIPv6Address(String propName, String value, AMPropertySheetModel propertySheetModel) {
// TODO add difference between hybrid and normal ipv6 notation for display
int i = 1;
while (st.hasMoreTokens()) {
i++;
}
}
}
private void setIPAddress(
) {
int i = 1;
while (st.hasMoreTokens()) {
i++;
}
}
}
}