![]() |
Sun Java
System Access Manager 2005Q4
Sample |
Main Page
SECTION 1 - Identity Management using Access Manager SDK SECTION 2 - Password Management using Access Manager SDK
SECTION 1SDK Sample FileThe sample files are created to help you understand the SDK part. It helps to understand how creating the organizations, users, roles, and adding services work.Build the samples by executing copy am_tests.jar from <install-root>/samples/um
to <install-root>/web-src/services/WEB-INF/lib
edit the file <install-root>/web-src/services/WEB-INF/web.xml and
add the below lines
<servlet>
<servlet-mapping>
redeploy services war file by executing the appropriate install script
depending
for eg. if samples are deployed on
1) Sun(tm) ONE App Server7.0, run amas70config
script found under <install-root>/bin.
edit the sample silent file used to run the install scripts.
Restart web container/server.
Login into Access Manager 2005Q4 product . This will help in getting
SSOToken
for that session. And now access the samples URL i.e.
http://<host>:<port>/amserver/sdksample
The URL will take you to a new page where you can create Organizations,
roles and users. There are lot of limitations of using these samples but
a good way to start working on Access Manager 2005Q4 SDK.
Note: the above steps to access the sdksample applies to Sun Java System
Webserver if you are using other web containers you need to do similar
operations based on the web container.
One of the assumptions: While creating roles, users and organizations,
please mention the distinguished name, DN for the organization.
These samples can be executed through command line. The DNs for organization
and user and role name are hard-coded that can be changed according to
one's DIT and convenience. Also, please provide the credentials in the
sample files ( SampleUserOperations.java, SampleRoleOperations.java
and SampleOrgOperations.java) to authenticate as per your DIT.
In RunSamples, SampleOrgOperations is defined that
creates the organization, gets the registered services, and adds the services.
Similarly, SampleUserOperations and SampleRoleOperations
can also be defined there and can be used for their respective purposes.
You need to be a super user to run RunSamples to access AMConfig.properties.
public void validateUserID(java.lang.String userID) throws AMException
{
//Put your UserId validation logic
public void validatePassword(java.lang.String password) throws AMException
{
//Put your password validation logic
}
}
Step -2 - Compile the class using the Makefile in the sample directory
and create the
Step -3 - Configure this Implementation class in the Access Manager console.
|