PermissionCheck (Apache Tomcat 6.0.51 API Documentation)
Keywords: org.apache.tomcat.util.security.PermissionCheck interface

Overview | Package | Class | Tree | Deprecated | Index | Help
| Apache Tomcat 6.0.51
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tomcat.util.security
Interface PermissionCheck

All Known Implementing Classes:
  WebappClassLoader

    public interface PermissionCheck

This interface is implemented by components to enable privileged code to check whether the component has a given permission. This is typically used when a privileged component (e.g. the container) is performing an action on behalf of an untrusted component (e.g. a web application) without the current thread having passed through a code source provided by the untrusted component. Because the current thread has not passed through a code source provided by the untrusted component the SecurityManager assumes the code is trusted so the standard checking mechanisms can't be used.

Method Summary
`boolean` | `check(java.security.Permission permission)` Does this component have the given permission?

Method Detail

### check

    boolean check(java.security.Permission permission)

  Does this component have the given permission?

  Parameters:
    `permission` - The permission to test
  Returns:
    `false` if a SecurityManager is enabled and the component does not have the given permission, otherwise `true`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Apache Tomcat 6.0.51
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.