RegisterServices.java revision cfba646ddfa9d543f0c40e4c7788c65b4a24b34d
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 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: RegisterServices.java,v 1.21 2010/01/05 18:11:34 goodearth Exp $
*
* Portions Copyrighted 2011-2015 ForgeRock AS.
*/
/**
* Registers service during setup time.
*/
public class RegisterServices {
private static final String umEmbeddedDS;
static {
while (st.hasMoreTokens()) {
}
}
/**
* Registers services.
*
* @param adminToken Administrator Single Sign On token.
* @param bUseExtUMDS <code>true</code> to use external DS as
* user management datastore.
* @throws IOException if file operation errors occur.
* @throws SMSException if services cannot be registered.
* @throws SSOException if single sign on token is not valid.
*/
boolean tagswap = true;
tagswap = false;
}
String strXML = IOUtils.readStream(getClass().getClassLoader().getResourceAsStream(serviceFileName));
// This string 'content' is to avoid plain text password
if (tagswap) {
"@UM_DS_DIRMGRPASSWD@", "********");
content =
}
if (tagswap) {
}
// Write to file without visible password values.
// Write to directory server with original password
// values.
}
if (!bUseExtUMDS) {
}
}
}
try {
} finally {
if (serviceStream != null) {
}
}
}
}
return strXML;
}
private static final String IDREPO_SUB_CONFIG_MARKER =
"<SubConfiguration name=\"@IDREPO_DATABASE@\" id=\"@IDREPO_DATABASE@\" />";
private static final String IDREPO_SUB_CONFIG =
"<SubConfiguration name=\"files\" id=\"files\"><AttributeValuePair><Attribute name=\"sunIdRepoClass\" /><Value>com.sun.identity.idm.plugins.files.FilesRepo</Value></AttributeValuePair><AttributeValuePair><Attribute name=\"sunFilesIdRepoDirectory\" /><Value>@BASE_DIR@/@SERVER_URI@/idRepo</Value></AttributeValuePair></SubConfiguration>";
}