0% found this document useful (0 votes)
2 views63 pages

Secure Coding Guidelines For Java SE - Compressed

Uploaded by

radianjuni
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views63 pages

Secure Coding Guidelines For Java SE - Compressed

Uploaded by

radianjuni
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

checkIndex checkFromToIndex checkFromIndexSize [Link].

Objects

IndexOutOfBoundsException
[Link]

ArithmeticException
AppContext

AppContext
+--------------------------------+
| [Link] |
| .checkPermission(Permission) |
+--------------------------------+
| [Link] |
| .checkPermission(Permission) |
+--------------------------------+
| [Link] |
| .checkPropertyAccess(String) |
+--------------------------------+
| [Link] |
| .getProperty(String) |
+--------------------------------+
| [Link] |
| .getOptions() |
+--------------------------------+
| [Link] |
| .main(String[]) |
+--------------------------------+
+--------------------------------+
| action |
| .run |
+--------------------------------+
| [Link] |
| .doPrivileged |
+--------------------------------+
| SomeClass |
| .someMethod |
+--------------------------------+
| OtherClass |
| .otherMethod |
+--------------------------------+
| |
AccessControlContext
+--------------------------------+
| ActionImpl |
| .run |
+--------------------------------+
| |
| noPermissionsAcc |
+ - - - - - - - - - - - - - - - -+
| [Link] |
| .doPrivileged |
+--------------------------------+
| SomeClass |
| .someMethod |
+--------------------------------+
| OtherClass |
| .otherMethod |
+--------------------------------+
| |
+--------------------------------+
| [Link] |
| handle() |
+--------------------------------+
| [Link].(anonymous) |
| run() |
+--------------------------------+ \ +--------------------------------+
| [Link] | ` | |
| .getContext() | +--> | acc |
+--------------------------------+ | + - - - - - - - - - - - - - - - -+
| [Link] | | | [Link] |
| .addHandler(Handler) | | | .doPrivileged(handler, acc) |
+--------------------------------+ | +--------------------------------+
| [Link] | | | [Link] |
| .main(String[] args) | , | .fire |
+--------------------------------+ / +--------------------------------+
| [Link] |
| .run |
+--------------------------------+
| |

+--------------------------------+
| [Link] |
| .LibClass |
+--------------------------------+
| [Link] |
| .newInstance |
+--------------------------------+
| [Link] |<-- [Link]
| .appMethod | determines check
+--------------------------------+
| |

+-------------------------+
| bootstrap loader | <--- null
+-------------------------+
^ ^
+------------------+ +---+
| extension loader | | A |
+------------------+ +---+
^
+------------------+
| system loader | <--- [Link]()
+------------------+
^ ^
+----------+ +---+
| B | | F |
+----------+ +---+
^ ^ ^
+---+ +---+ +---+
| C | | E | | G |
+---+ +---+ +---+
^
+---+
| D |
+---+
+--------------------------------+
| action |
| .run |
+--------------------------------+
| [Link] |
| .doPrivileged |
+--------------------------------+
| [Link] |
| .invoke |
+--------------------------------+
| [Link] | <--- Effective caller
| .libMethod |
+--------------------------------+
| |
VarHandle

You might also like