Java Security Manager - What does it check?

后端 未结 3 572
死守一世寂寞
死守一世寂寞 2021-02-04 10:31

This article about Java security says:

Code in the Java library consults the Security Manager whenever a dangerous operation is about to be attempted.

3条回答
  •  离开以前
    2021-02-04 11:04

    Using security manager you could control access to :

    1. File operations
    2. Reflection facility
    3. Read/Write IO
    4. Thread/Thread group operations
    5. Socket operations(listen, accept etc.)
    6. Power to create your own classloader.

    For each such thing there is a check*() method in SecurityManager

    For an exhaustive list check the constants in SecurityConstants

提交回复
热议问题