Develop with JAAS to log in programmatically

Java Authentication and Authorization Service (JAAS) is a new feature in WebSphere Application Server Version 5. It is also mandates by J2EE 1.3 Specification. Java Authentication and Authorization Service represents the strategic APIs for authentication and replaces the CORBA programmatic login APIs. Additionally, WebSphere Application Server has provides some extensions to JAAS.

If the application is using custom JAAS login configuration, please make sure that the custom JAAS login configuration is properly defined. See Configure JAAS login configuration for details.

Some of the JAAS APIs are protected by Java 2 Security permissions, if these APIs are used by application code, please make sure that these permissions are added to the application was.policy file. See The was.policy file for more information. For more details of which APIs are protected by Java 2 Security permissions, please check the J2SDK, JAAS, and WebSphere Application Server APIs javadoc for more details. The following lists some of the APIs used in the sample code in this documentation and the Java 2 Security permissions required by these APIs:

WebSphere Application Server provides these extensions to JAAS:

Version 5.0.2 JAAS usage

See the following topics for more information about using JAAS with WebSphere Application Server Version 5.0.2: