am.h revision 4fe4e4f798a84a46e567f64ceadd3648eb0582d4
/* -*- Mode: C -*-
*
* 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: am.h,v 1.4 2008/08/19 19:11:35 veiming Exp $
*/
/*
* Abstract:
*
* General utility routines provided by the OpenSSO
* Access Management library.
*
*/
#ifndef AM_H
#define AM_H
#include <am_types.h>
#define AM_COMMON_PROPERTY_PREFIX "com.sun.am."
#define AM_POLICY_PROPERTY_PREFIX "com.sun.am.policy.am."
#define AM_AUTH_PROPERTY_PREFIX "com.sun.am.auth."
#define AM_SSO_PROPERTY_PREFIX "com.sun.am.sso."
#define AM_LOG_PROPERTY_PREFIX "com.sun.am.log."
/* Common Properties */
/* Log Properties */
/* Authentication Properties */
/* Policy Properties */
#define AM_POLICY_URL_COMPARISON_CASE_IGNORE_PROPERTY AM_POLICY_PROPERTY_PREFIX "url_comparison.case_ignore"
#define AM_POLICY_URL_COMPARISON_CASE_IGNORE_PROPERTY_OLD AM_POLICY_PROPERTY_PREFIX "urlComparison.caseIgnore"
#define AM_POLICY_PROFILE_ATTRS_COOKIE_PFX_OLD AM_POLICY_PROPERTY_PREFIX "ldapattribute.cookiePrefix"
#define AM_POLICY_PROFILE_ATTRS_COOKIE_MAX_AGE_OLD AM_POLICY_PROPERTY_PREFIX "ldapattribute.cookieMaxAge"
#define AM_POLICY_FETCH_FROM_ROOT_RSRC_PROPERTY AM_POLICY_PROPERTY_PREFIX "fetch_from_root_resource"
#define AM_POLICY_FETCH_FROM_ROOT_RSRC_PROPERTY_OLD AM_POLICY_PROPERTY_PREFIX "fetchFromRootResource"
#define AM_COMMON_IGNORE_PREFERRED_NAMING_URL_PROPERTY AM_COMMON_PROPERTY_PREFIX "ignore.preferred_naming_url"
/*
* This function must be called at the end of the program to
*
* This should be called only once.
*
* Any properties input parameter given to the init functions am_sso_init()
* am_auth_init() or am_policy_init() should be destroyed only after
* am_cleanup is called.
*
* Parameters:
* xmlmsg
* XML message containing the notification message.
*
* policy_handle_t
* The policy handle created from am_policy_service_init().
*
* NULL if policy is not initialized or not used.
*
* Returns:
* AM_SUCCESS
* if XML message was successfully parsed and processed.
*
* AM_INVALID_ARGUMENT
* if any input parameter is invalid.
*
* AM_FAILURE
* if any other error occurred.
*/
am_cleanup(void);
#endif /* not AM_H */