03.05.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Definition: A principal is an entity in the computer system to which<br />

permissions (and as a result, accountability) are granted.<br />

(From the Java 2 Platform <strong>Security</strong> Architecture V1.0 paper by Sun<br />

Microsystems)<br />

There are two distict categories of protection domains:<br />

► System domain<br />

► Application domain<br />

application<br />

1<br />

application<br />

2<br />

. . .<br />

application<br />

n<br />

System Domain<br />

Net I/O file I/O AWT<br />

. . .<br />

Figure 8-6 Protection domains<br />

Protection domains are determined by the policy currently in effect. The Java<br />

application environment maintains the mapping between code, their protection<br />

domains and their permissions.<br />

runtime<br />

classes<br />

security policy<br />

a.class<br />

b.class<br />

c.class<br />

d.class<br />

domain A<br />

domain B<br />

permissions<br />

permissions<br />

Figure 8-7 Class - Domain - Permission mapping<br />

As a rule of thumb, a less “powerful” domain cannot gain additional permissions<br />

as a result of calling or being called by a more “powerful” domain.<br />

Chapter 8. Programmatic security 197

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

Saved successfully!

Ooh no, something went wrong!