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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

To call a piece of trusted code to temporarily enable access to more resourcesthan are available directly to the application the doPrivileged method can beused. It comes handy when for example an application wants to ........The domains, either system or application, can also implement additionalprotection of their internal resources within the domain boundary.<strong>Security</strong> managementThe security manager defines the outer boundaries of the Java sandbox. Thefact that the security manager is customizable, it allows the security manager toestablilish custom security policies for an application. The concrete<strong>Security</strong>Manager provided with the Java version 1.2 allows you to define yourcustom policy not in Java code, but in an ASCII file called the policy file.The security manager is not automatically loaded when an application is running,in order to activate the manager, the user has to specify the-Djava.security.manager command-line argument for the Java runtime.A custom security manager class can be also specified in the command-line:-Djava.security.manager=com.mycompany.My<strong>Security</strong>Manager; if nothing isspecified then the default security manager will be initialized for the application.Access controlThe java.security.ProtectionDomain class represents a unit of protection within aJava application environment and is typically associated with a concept ofprincipal.The java.security.AccessController class is used for the following purposes:► To decide whether an access to a critical resource is allowed or denied,based on the security policy currently in effect,► To mark code as being privileged,► To obtain a snapshot of the current calling context to support access-controldecisions from a different context.Any code that controls access to system resources sould invokeAccessControler methods if it wishes to use the specific security model andaccess control algorithm utilized by these methods.<strong>Security</strong> permissionsThe permission classes represent access to system resources. Thejava.security.Permission class is an abstract class and is subclassed torepresent specific accesses.198 <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!