包含在尋找其他文件熱門支援資源 | 以 PDF 格式下載這本書 (1531 KB)
Chapter 1 The C SDK Application Programming InterfacesSun OpenSSO Enterprise provides C application programming interfaces (API) and related information to form a software development kit (SDK) that can be used to enable external C applications to participate in OpenSSO Enterprise authentication, authorization, single sign-on (SSO), and logging operations. Additionally, the C SDK is a development kit for web agents — allowing developers to create web agents for containers that have not yet been provided for OpenSSO Enterprise. This chapter covers the following topics: Where is the C SDK?The OpenSSO Enterprise C SDK can be found in the opensso directory created on the machine to which OpenSSO Enterprise is deployed. From inside the top-level opensso directory, change into the libraries/native/agent-csdk directory where you will find agent-csdk.zip and a README. Within agent-csdk.zip are the following 32–bit and 64–bit libraries:
What is Included in the C SDK?Each library contains header files, samples, and README files containing information on how to implement the C SDK. More information is in the following sections. Header FilesA header file is a text file that contains pieces of code written in the C programming language. The name of a header file, by convention, ends with the .h extension. It is inserted inside a program by coding the #include preprocessor directive. The OpenSSO Enterprise C header files are:
Code SamplesOpenSSO Enterprise provides code samples that demonstrate how you can use the API to connect C applications to the OpenSSO Enterprise framework. The code samples are:
Developing Web Policy AgentsThe C SDK can be used to develop web policy agents. Web agents that are currently available for OpenSSO Enterprise can be downloaded from the agents download page. Web agents that are not yet available can be developed using the C API and the included sample source files as a blueprint. See README.TXT in the samples directory for more information on using this web policy agent development toolkit. Required C LibrariesThe sample programs are run by launching a generated executable on the command line. The following sections contain instructions for the supported platforms. Be sure to set the library path appropriately for the platform you are using. Solaris Operating SystemFor the SolarisTM operating System, set the LD_LIBRARY_PATH environment variable to include: /usr/lib/mps:opensso-base/is_csdk/lib:/usr/lib:/usr/ucblib Note – The /usr/lib directory is included before the /usr/ucblib directory so that common programs (such as editors) will continue to function. These directories contain the following shared libraries:
Linux Application EnvironmentFor the Linux application environment, set the LD_LIBRARY_PATH environment variable to include: /usr/lib/mps:opensso-base/is_csdk/lib:/usr/lib:/usr/ucblib This directory contains the following shared libraries:
Microsoft WindowsWhen using Microsoft® Windows, you must have the \\opensso-base\is_csdk\bin directory in your path before launching the samples. Alternatively, you can run the run.bat script to launch the samples. The script will set your path appropriately. |