Java™ Authentication and Authorization Service SampleThreadSubjectLogin instructions

Source files

Put the SampleThreadSubjectLogin.java source file in your own test directory: This source file needs to be compiled into your ./classes directory.

To look at the source code to this file that has been formatted for your HTML browser, see Example: JAAS SampleThreadSubjectLogin.

Policy files

See the API Developers Guide for general information on the JAAS policy files. Here are policy files that are specific to the SampleThreadSubjectLogin sample:

See the comments at the beginning of SampleThreadSubjectLogin.java for information on compiling and running this example.