AuthPropertiesModelImpl.java revision 44533057912ac5c4bca52935b8fbc8e6d59d0671
/**
* 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: AuthPropertiesModelImpl.java,v 1.3 2008/07/09 02:04:49 veiming Exp $
*
*/
/*
* Portions Copyrighted 2011-2015 ForgeRock AS
*/
/* - LOG COMPLETE - */
public class AuthPropertiesModelImpl extends AMModelBase
implements AuthPropertiesModel {
/**
* Creates a model instance for configuring the core auth properties.
*
* @param req The <code>HttpServletRequest</code> object.
* @param map of user information.
*/
if (currentRealm == null) {
currentRealm = "/";
}
}
}
/**
* Returns the values for the core authenticaion service attributes.
*
* @return Map property values.
*/
try {
}
} catch (SMSException e) {
logEvent("SMS_EXCEPTION_GET_ATTR_VALUE_OF_SERVICE_UNDER_REALM",
paramsEx);
throw new AMConsoleException(strError);
}
}
/**
* To get the service name from the instance name:
* 1) get a handle to the AMAuthenicationInstance object
* 2) from the AuthInstance object get the type of instance
* 3) Use the instance type to get the schema for that type
* 4) from the schema get the service name
*/
try {
} else {
if (debug.warningEnabled()) {
" the requested instance " + instance +
" does not exist.");
}
}
} catch (AMConfigurationException ace) {
if (debug.warningEnabled()) {
}
}
return name;
}
/**
* Returns true if there are attributes for a authentication type.
*
* @param type Authtentication type.
* @return true if there are attributes for a authentication type.
*/
boolean has = false;
try {
} catch (AMConfigurationException e) {
}
return has;
}
public Map getAuthTypes() {
try {
}
} catch (AMConfigurationException e) {
}
return authAndLocalizedTypes;
}
public Set getAuthInstances() {
if (currentRealm !=null) {
try {
} catch (AMConfigurationException e) {
}
}
}
try {
try {
} catch(AMConfigurationException e) {
"AUTH_CONFIG_EXCEPTION_REMOVE_AUTH_INSTANCE", paramsEx);
message = e.getMessage();
}
}
}
} catch (AMConfigurationException ace) {
throw new AMConsoleException(strError);
}
getLocalizedString("authentication.instance.delete.failed"),
}
}
throws AMConsoleException
{
try {
} catch (AMConfigurationException e) {
throw new AMConsoleException(strError);
}
}
try {
} catch (SMSException e) {
throw new AMConsoleException(strError);
} catch (SSOException e) {
throw new AMConsoleException(strError);
}
}
private ServiceConfig getCoreAuthServiceConfig()
throws SMSException
{
}
try {
} catch (AMConfigurationException e) {
logEvent("AUTH_CONFIGURATION_EXCEPTION_GET_AUTH_INSTANCE_PROFILE",
paramsEx);
}
}
throws AMConsoleException
{
try {
instance);
} catch (AMConfigurationException e) {
"AUTH_CONFIGURATION_EXCEPTION_MODIFY_AUTH_INSTANCE_PROFILE",
paramsEx);
throw new AMConsoleException(strError);
} catch (SMSException e) {
throw new AMConsoleException(strError);
} catch (SSOException e) {
throw new AMConsoleException(strError);
}
}
}