13.07.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

►The following callbacks are provided for user interaction:– ChoiceCallback: collects choice information– ConfirmationCallback: collects confirmation information– LanguageCallback: collects the language information– NameCallback: collects the user name for login– PasswordCallback: collects the password for the login– TextInputCallback: collects simple text information– TextOutputCallback: provides text information– WSCredTokenCallbackImpl: collects the token for the login. It is an <strong>IBM</strong>proprietary callback type.A class that implements the LoginModule interface, which performs the loginprocess effectively.Three descriptor (configuration) files are also required for JAAS:► The subject-based access control policy for the application, passed alongwith the -Djava.security.auth.policy= parameter to the JVM.► The access control policy file for the application, passed along with the-Djava.security.policy= parameter to the JVM.► Login configuration for the application, passed along with the-Djava.security.auth.login.config= parameter to the JVM.8.6.2 How is JAAS security working ?All you need to do is to start the client in the virtual machine with the correctconfiguration.The following system properties configure JAAS for the Java Virtual Machine.► -Djava.security.auth.policy=jaas.policy defines the JAAS policy for the virtualmachine► -Djava.security.auth.login=login.conf provides the configuration file forLoginContext, what login class to use for authentication.Running the application with specific JAAS configuration look like the followingexample:java -Djava.security.auth.policy=jaas.policy-Djava.security.auth.login=login.config com.mycompany.MyApplicationJAAS requires a configuration file for the login module definition, for example:login.config.206 <strong>IBM</strong> <strong>WebSphere</strong> <strong>V5.0</strong> <strong>Security</strong> Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!