16.10.2015 Views

Getting Started with WebSphere Application Server

Create successful ePaper yourself

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

146 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> Community Edition<br />

Figure 8.1 - Community Edition security: The big picture<br />

Use the following steps to secure a Java EE application in Community Edition:<br />

1. Configure the security realm in the Administrative Console.<br />

2. Define the role mapping in Geronimo deployment plan.<br />

3. Restrict roles to access Java EE resources either by annotations or by Java EE deployment<br />

descriptors<br />

Each of these steps is discussed in more detail in the next sections. Not shown in the figure is the use of<br />

trusted contexts to protect your data and improve performance on three-tier applications. This is<br />

discussed in section 8.5<br />

8.2 Configuring the security realm<br />

Security realms can be defined as standalone or as part of an individual application. In Community<br />

Edition, you can configure the Security Realm from the Administrative Console following steps below:<br />

1. Start Community Edition, open the Administrative Console and go to the Security Realms portlet.<br />

Then click Add new security realm.<br />

2. Type the realm name you want, such as helloRealm and for the Realm Type select Properties File<br />

Realm as illustrated in Figure 8.2. Then click Next.

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

Saved successfully!

Ooh no, something went wrong!