|
Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.Permission
java.security.BasicPermission
java.dyn.LinkagePermission
public final class LinkagePermission extends BasicPermission
PROVISIONAL API, WORK IN PROGRESS:
This class is for managing runtime permission checking for
operations performed by methods in the Linkage class.
Like a RuntimePermission, on which it is modeled,
a LinkagePermission contains a target name but
no actions list; you either have the named permission
or you don't.
The following table lists all the possible LinkagePermission target names,
and for each provides a description of what the permission allows
and a discussion of the risks of granting code the permission.
| Permission Target Name | What the Permission Allows | Risks of Allowing this Permission |
|---|---|---|
| invalidateAll | Force the relinking of invokedynamic call sites everywhere. | This could allow an attacker to slow down the system, or perhaps expose timing bugs in a dynamic language implementations, by forcing redundant relinking operations. |
| invalidateCallerClass.{class name} | Force the relinking of invokedynamic call sites in the given class. | See invalidateAll. |
ISSUE: Is this still needed?
RuntimePermission,
SecurityManager,
Serialized Form| Constructor and Description |
|---|
LinkagePermission(String name)
Create a new LinkagePermission with the given name. |
LinkagePermission(String name,
Class<?> clazz)
Create a new LinkagePermission with the given name on the given class. |
| Modifier and Type | Method and Description |
|---|
| Methods inherited from class java.security.BasicPermission |
|---|
equals, getActions, hashCode, implies, newPermissionCollection |
| Methods inherited from class java.security.Permission |
|---|
checkGuard, getName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LinkagePermission(String name)
name - the name of the LinkagePermission
public LinkagePermission(String name,
Class<?> clazz)
LinkagePermission(name+"."+clazz.getName()).
name - the name of the LinkagePermissionclazz - the class affected by the permission
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.