Skip to main content

A Security Configuration Report Application

  • Chapter
  • First Online:
Book cover Swing for Jython
  • 884 Accesses

Abstract

Not too long ago, someone asked me how difficult it would be to generate a security configuration report, similar to what is available from the WebSphere administration console. This chapter explores the creation of such an application to display the security report in a user-friendly way, all the while using the techniques that you’ve learned so far. This will allow the users to interact with the information in a way that provides a better understanding of the security-related configuration information for a WebSphere Application Server.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    The -lang jython command-line option is needed only if you haven’t changed the default scripting language in the appropriat wsadmin.properties file. The -conntype none option tells wsadmin to execute in local mode, so no connection is attempted to a possibly inactive application server. It is important to remember that the command should appear on a single line. The backslash\isn’t actually part of the command and should not be entered.

  2. 2.

    In fact, this information is how the reportSectionSize.py script processes the data to determine the number and sizes of the report sections.

  3. 3.

    See http://docs.oracle.com/javase/7/docs/api/javax/swing/JViewport.html.

  4. 4.

    You can display the value returned by vPort.getClass(),which tells you that the variable refers to an instance of javax.swing.JViewport.

  5. 5.

    See http://docs.oracle.com/javase/7/docs/api/java/awt/CardLayout.html.

  6. 6.

    See http://docs.oracle.com/javase/7/docs/api/javax/swing/JTabbedPane.html.

  7. 7.

    See http://docs.oracle.com/javase/7/docs/api/javax/swing/RowFilter.html.

  8. 8.

    Note that a different color scheme indicates when a section row is selected (as you can see on the last row of the table).

  9. 9.

    wsadmin -conntype none -lang jython

  10. 10.

    text = AdminTask.generateSecConfigReport()

  11. 11.

    Note the use of the isDone() method on line 370, which is used to determination when the background task is complete.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Robert A. Gibson

About this chapter

Cite this chapter

Gibson, R. (2015). A Security Configuration Report Application. In: Swing for Jython. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0817-5_21

Download citation

Publish with us

Policies and ethics