You can store, access, and use properties that are required to make a connection to, and communicate with, a remote service.
The Accounts API provides a way to store, access, and use properties that are required to make a connection to, and communicate with, a remote service. Some examples of accounts include: An HTTP account which is used to connect to a web based service. This account will contain a URL for the location of the service, and a user name and password to logon to the service. An Instant Messaging account which is used by an IM client to connect to an IM server, such as IBM® Lotus® Sametime®. This account would include a server name, user name and password to connect to the IM server. The account could also be used to store user preferences such as the text people see when the user’s IM status is “Away”. So, an account can be used to store both connection properties, and properties or preferences specific to that connection. In the case of IM, the user could have multiple IM accounts, both for business and personal use. The “Away” status message can be stored in the account, so that it can be set to a different value for each one.
The Accounts API provides a way to get, add, update, remove, and listen for changes to, an account. Accounts can be obtained by unique id, name, or any other property, and a get account by server method provides for partial matches. The Accounts API also provides integration with the Java Authentication and Authorization Service (JAAS). (For more information about JAAS, refer to http://java.sun.com/products/jaas/overview.html
) A properly constructed account can provide a login context service which will obtain and validate the credentials needed to connect to a remote service. Certain accounts will also obtain LTPA and session cookies. By using the Accounts integration with JAAS an application will have completely validated passwords and cookies needed to communicate with the remote service.
All accounts except for the Home Portal Account can be managed using the Accounts user interface. The Home Portal Account can be managed using the Home Portal Account user interface.
For more information, refer to Accounts framework in .
Creating accounts: XPD621
An account holds a set of properties (name/value pairs) used by an application to connect to a remote service.
Parent topic: Managing client configurations: XPD621