/**
* 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: FSAuthDomainsModelImpl.java,v 1.12 2009/11/10 01:19:49 exu Exp $
*
*/
implements FSAuthDomainsModel
{
static {
}
/**
* Creates a simple model using default resource bundle.
*
* @param req HTTP Servlet Request
* @param map of user information
*/
}
/**
* Returns a <code>Set</code> of all the authentication domains
* starting from the root realm.
*
* @return a Set of authentication domain names.
*/
try {
}
} catch (COTException e) {
"FSAuthDomainsModelImpl.getAuthenticationDomains", e);
} catch (AMConsoleException e){
"FSAuthDomainsModelImpl.getAuthenticationDomains", e);
}
}
try {
}
}
} catch (COTException e) {
"FSAuthDomainsModelImpl.getAuthenticationDomains", e);
} catch (AMConsoleException e){
"FSAuthDomainsModelImpl.getAuthenticationDomains", e);
}
return descSet;
}
/**
* Creates authentication domain.
*
* @param attrValues Map of attribute name to set of attribute values.
* @throws AMConsoleException if authentication domain created.
*/
throws AMConsoleException
{
throw new AMConsoleException(
"authdomain.authentication.domain.name.missing.message");
}
try {
} catch (COTException e) {
throw new AMConsoleException(strError);
}
}
/**
* Deletes an authentication domain (circle of trust) within a given realm.
*
* @param realm name of realm where authentication domain exists.
* @param cotName name of the authentication domain.
* @throws AMConsoleException if authentication domain cannot be deleted.
*/
throws AMConsoleException
{
try {
} catch (COTException e) {
throw new AMConsoleException(strError);
}
}
throws COTException
{
if (cotManager == null) {
cotManager = new CircleOfTrustManager();
}
return cotManager;
}
/**
* Returns attribute values.
*
* @param name Name of authentication domain.
* @return Map of attribute name to values.
* @throws AMConsoleException if attribute values cannot be retrieved.
*/
throws AMConsoleException
{
try {
} catch (COTException e) {
logEvent("FEDERATION_EXCEPTION_GET_AUTH_DOMAIN_ATTR_VALUES",
paramsEx);
throw new AMConsoleException(strError);
}
return values;
}
/**
* Set attribute values.
*
* @param name Name of authentication domain.
* @param values Map of attribute name to value.
* @throws IDFFMetaException if attribute values cannot be set.
*/
throws AMConsoleException
{
try {
} catch (COTException e) {
throw new AMConsoleException(strError);
}
}
/**
* Returns a map of authentication domain attributes.
*
* @return Map of authentication domain attributes.
*/
return DATA_MAP;
}
/**
* Returns a <code>Set</code> of provider names that exist in the
* specified realm.
*
* @param realm name of the realm to search.
* @return a set of provider names.
* @throws AMConsoleException if provider names cannot be obtained.
*/
throws AMConsoleException
{
try {
}
} catch (SAML2MetaException e) {
throw new AMConsoleException(strError);
}
try {
(new WSFederationMetaManager()).
}
} catch (WSFederationMetaException e) {
throw new AMConsoleException(e.getMessage());
}
try {
}
} catch (IDFFMetaException e) {
throw new AMConsoleException(e.getMessage());
}
return (availableEntities != null) ?
}
/**
* Returns a set of provider names under a authentication domain.
*
* @param name Name of authentication domain.
* @return a set of provider names under a authentication domain.
* @throws AMConsoleException if provider names cannot be obtained.
*/
throws AMConsoleException
{
try {
} catch (COTException e) {
"FEDERATION_EXCEPTION_GET_PROVIDER_NAMES_UNDER_AUTH_DOMAIN",
paramsEx);
throw new AMConsoleException(strError);
}
}
/**
* Adds providers.
* @param realm realm of circle of trust
* @param cotName Name of circle of trust
* @param names Names provider to be added.
* @throws AMConsoleException if provider cannot be added.
*/
throws AMConsoleException
{
try {
if (existingEntity != null) {
}
}
}
for (int i=0; i<sz; i++) {
}
}
}
} catch (COTException e) {
logEvent("FEDERATION_EXCEPTION_ADD_PROVIDERS_TO_AUTH_DOMAIN",
paramsEx);
throw new AMConsoleException(strError);
}
}
/**
* Returns realm that have name matching
*
* @param name Base realm name for this search. null indicates root
* suffix.
* @return realm that have name matching
* @throws AMConsoleException if search fails.
*/
throws AMConsoleException
{
Set s = getCircleOfTrustDescriptors();
}
}
return realm;
}
}