All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mq5.0-source.src.share.java.examples.jaas.README Maven / Gradle / Ivy

There is a newer version: 5.1
Show newest version
This README describes how to plug in the SampleLoginModule from the 
JAAS Authentication Tutorial to MQ broker.

1. Download following files from JAAS Tutorials -> JAAS Authentication at
   http://download.oracle.com/javase/1.5.0/docs/guide/security/jaas/tutorials/

   SampleLoginModule.java	
   SamplePrincipal.java 
   sample_jaas.config

2. Compile the SampleLoginModule and SamplePrincipal classes by following
   "Running the Code" instructions in the JAAS Authentication Tutorial

3. Place the compiled classes in #2 into MQ broker /lib/ext directory

4. Copy the following content to MQ broker instance's config.properties

   imq.authentication.type=basic
   imq.authentication.basic.user_repository=jaas
   imq.user_repository.jaas.name=Sample
   imq.user_repository.jaas.userPrincipalClass=sample.principal.SamplePrincipal
 
5. Start broker by specifying Java system property
   -Djava.security.auth.login.config== 

6. Write a simple JMS client that creates a JMS Connection. The comments in
   SampleLoginModule.java tells the correct username and password to use.




© 2015 - 2024 Weber Informatics LLC | Privacy Policy