TaskModelImpl.java revision 606e603520edfb17c81957d2b2d27e8d66ab5807
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008 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: TaskModelImpl.java,v 1.15 2009/07/28 17:46:24 babysunil Exp $
*
*/
/*
* Portions Copyrighted 2011-2013 ForgeRock Inc.
*/
public class TaskModelImpl
extends AMModelBase
implements TaskModel {
}
/**
* Returns realm names.
*
* @return realm names.
* @throws AMConsoleException if realm cannot be retrieved.
*/
throws AMConsoleException {
return results;
}
/**
* Returns a set of signing keys.
*
* @return a set of signing keys.
*/
public Set getSigningKeys()
throws AMConsoleException {
try {
if (e != null) {
while (e.hasMoreElements()) {
}
}
}
return keyEntries;
} catch (KeyStoreException e) {
throw new AMConsoleException(e.getMessage());
}
}
/**
* Returns a set of circle of trusts.
*
* @param realm Realm.
* @return a set of circle of trusts.
* @throws AMConsoleException if unable to retrieve circle of trusts.
*/
throws AMConsoleException {
try {
} catch (COTException ex) {
}
}
/**
* Returns a set of entities in a circle of trust.
*
* @param realm Realm.
* @param cotName Name of circle of trust.
* @return a set of entities in a circle of trust.
* @throws AMConsoleException if unable to retrieve entities.
*/
throws AMConsoleException {
try {
} catch (COTException ex) {
}
}
/**
* Returns a set of hosted IDP in a circle of trust.
*
* @param realm Realm.
* @param cotName Name of circle of trust.
* @return a set of hosted IDP in a circle of trust.
* @throws AMConsoleException if IDP cannot be returned.
*/
throws AMConsoleException {
}
/**
* Returns a set of remote IDP in a circle of trust.
*
* @param realm Realm.
* @param cotName Name of circle of trust.
* @return a set of remote IDP in a circle of trust.
* @throws AMConsoleException if IDP cannot be returned.
*/
throws AMConsoleException {
}
/**
* Returns a set of hosted SP in a circle of trust.
*
* @param realm Realm.
* @param cotName Name of circle of trust.
* @return a set of hosted SP in a circle of trust.
* @throws AMConsoleException if IDP cannot be returned.
*/
throws AMConsoleException {
}
/**
* Returns a set of remote SP in a circle of trust.
*
* @param realm Realm.
* @param cotName Name of circle of trust.
* @return a set of remote SP in a circle of trust.
* @throws AMConsoleException if IDP cannot be returned.
*/
throws AMConsoleException {
}
private Set getEntities(
boolean bIDP,
boolean hosted) throws AMConsoleException {
try {
// elm could be null due to OPENAM-269
if (bIDP) {
}
} else {
}
}
}
}
return results;
} catch (SAML2MetaException ex) {
}
}
/**
* Returns a map of realm to a map of circle of trust name to a set of
* Hosted Identity Providers.
*
* @return a map of realm to a map of circle of trust name to a set of
* Hosted Identity Providers.
* @throws AMConsoleException if this map cannot be constructed.
*/
public Map getRealmCotWithHostedIDPs()
throws AMConsoleException {
if (r == null) {
r = new HashMap();
}
}
}
}
return map;
}
throws AMConsoleException {
try {
if (idpssoDescriptor != null) {
}
}
}
if (port == -1) {
}
// get pubkey
if (idpssoConfig != null) {
}
}
} catch (SAML2MetaException ex) {
} catch (MalformedURLException ex) {
}
return map;
}
public Map getConfigureSalesForceAppsURLs(
) throws AMConsoleException
{
try {
// get pubkey
if (idpssoConfig != null) {
}
}
+ publickey + "\n-----END CERTIFICATE-----\n";
} catch (SAML2MetaException ex) {
}
return map;
}
/*
Added for OpenAM-1232. Want to return a set of the attribute names configured. The user should allow to select
a specific appropriate attribute name as the SAML FederationId.
The attributes String is in format ATTR_NAME=ATTR_VALUE|
The jato widgets displaying a selectable list are problematic. I will simply return a string containing
the attribute names.
*/
int count = 0;
while (attributeTokens.hasMoreTokens()) {
if (attributeName != null) {
if (count > 0) {
} else {
}
count++;
}
}
return attributeNames.toString();
}
/**
* Saves the Salesforce login url as the Assertion Consumer Service Location
* @param realm Realm
* @param entityId Entity Name
* @param acsUrl assertion consumer service location
* @throws AMConsoleException if value cannot be saved.
*/
public void setAcsUrl(
try {
if (spssoDescriptor != null) {
}
}
}
} catch (SAML2MetaException e) {
}
}
}
return set;
}
}
for (int i = 0; i < size; i++) {
}
return set;
}
}