SetupClientSDKSamples.java revision 386650a8957e131311273ee84a4a4113ad5e3fe2
/**
* 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: SetupClientSDKSamples.java,v 1.5 2008/08/19 19:12:25 veiming Exp $
*
*/
/**
* This setup the OpenSSO client SDK samples.
*/
public class SetupClientSDKSamples {
private static final String FILE_AMCONFIG_PROPERTIES_TEMPLATE =
private static final String FILE_AMCONFIG_PROPERTIES =
private static final String TAG_APPLICATION_PASSWD =
"ENCODED_APPLICATION_PASSWORD";
private static final String TAG_SESSION_PROVIDER_CLASS =
"SESSION_PROVIDER_CLASS";
private static final String SESSION_PROVIDER_CLASS =
"com.sun.identity.plugin.session.impl.FMSessionProvider";
private static final String TAG_CONFIGURATION_PROVIDER_CLASS =
"CONFIGURATION_PROVIDER_CLASS";
private static final String CONFIGURATION_PROVIDER_CLASS =
"com.sun.identity.plugin.configuration.impl.ConfigurationInstanceImpl";
private static final String TAG_DATASTORE_PROVIDER_CLASS =
"DATASTORE_PROVIDER_CLASS";
private static final String DATASTORE_PROVIDER_CLASS =
"com.sun.identity.plugin.datastore.impl.IdRepoDataStoreProvider";
private static final String TRUST_ALL_CERTS =
"com.iplanet.am.jssproxy.trustAllServerCerts=true\n";
private static final String CLIENT_ENC_KEY =
"com.sun.identity.client.encryptionKey";
static {
}
public SetupClientSDKSamples()
throws IOException, MissingResourceException
{
}
private void getDefaultValues()
throws MissingResourceException
{
} else {
}
}
// add defaults to properties
}
private void promptForServerAnswers()
throws IOException
{
if (q.equals(TAG_NAMING_URL)) {
}
if (defaultValue != null) {
label += " (hit enter to accept default value, " +
defaultValue + ")";
}
value = (new BufferedReader(
}
}
if (q.equals(TAG_APPLICATION_PASSWD)) {
new EncodeAction(value)));
} else {
}
}
}
private void createPropertiesFile()
throws IOException
{
}
}
}
throws IOException
{
}
}
try {
} catch (IOException e) {
e.printStackTrace();
} catch (MissingResourceException e) {
e.printStackTrace();
}
}
}