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 that is used to connect to a Web-based service. This account contains a URL for the location of the service, and a user name and password to log on to the service. An Instant Messaging account that is used by an IM client to connect to an IM server, such as IBM
®. This account includes a server name, user name, and password to connect to the IM server. The account can also be used to store user preferences such as the text people see when the u IM status is Away. 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 can 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 account.
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 that obtains and validates the credentials needed to connect to a remote service. Certain accounts also obtain LTPA and session cookies. By using the Accounts integration with JAAS, an application has the 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 accountsParent topic: Managing client configurations
An account holds a set of properties (name/value pairs) used by an application to connect to a remote service.