ConfiguredAuthServices.java revision 1cb968daf78963d139ff89a7b192e85314e82509
/**
* 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: ConfiguredAuthServices.java,v 1.6 2008/06/25 05:42:04 qcheng Exp $
*
*/
/*
* Portions Copyrighted 2014 ForgeRock AS
*/
/**
* The class determines the configured Identity Types for Identity Repository.
* This list is computed per realm.
*/
public class ConfiguredAuthServices extends ChoiceValues {
/**
* Creates <code>ConfiguredAuthServices</code> object.
* Default constructor that will be used by the SMS
* to create an instance of this class
*/
public ConfiguredAuthServices() {
// do nothing
}
/**
* Returns the choice values and their corresponding localization keys.
*
* @return the choice values and their corresponding localization keys.
*/
public Map getChoiceValues() {
}
/**
* Returns the choice values from configured environment params.
* @param envParams map for configured parameters
* @return the choice values from configured environment params.
*/
}
}
if (adminToken == null) {
}
try {
// Get the named config node
if (namedConfig != null) {
// get all sub config names
}
}
} catch (Exception e) {
// do nothing as namedConfigs will be empty.
}
}
}
//return the choice values map
return (answer);
}
/**
* Extensions will want to restrict the list of auth services. The default implementation just returns all.
* @param namedConfigs The auth services that have been found.
* @param parentConfig The ServiceConfig parent of all auth services.
* @param realm The current realm.
* @param adminToken The current SSO token.
* @return The filtered list of auth services.
*/
protected Set<String> filterConfigs(Set<String> namedConfigs, ServiceConfig parentConfig, String realm,
return namedConfigs;
}
}