| java.lang.Object org.apache.harmony.security.PolicyEntry
PolicyEntry | public class PolicyEntry (Code) | | This class represents an elementary block of a security policy. It associates
a CodeSource of an executable code, Principals allowed to execute the code,
and a set of granted Permissions.
See Also: org.apache.harmony.security.DefaultPolicy |
getPermissions | public Collection<Permission> getPermissions()(Code) | | Returns unmodifiable collection of permissions defined by this
PolicyEntry, may be null .
|
impliesCodeSource | public boolean impliesCodeSource(CodeSource codeSource)(Code) | | Checks if passed CodeSource matches this PolicyEntry. Null CodeSource of
PolicyEntry implies any CodeSource; non-null CodeSource forwards to its
imply() method.
|
impliesPrincipals | public boolean impliesPrincipals(Principal[] prs)(Code) | | Checks if specified Principals match this PolicyEntry. Null or empty set
of Principals of PolicyEntry implies any Principals; otherwise specified
array must contain all Principals of this PolicyEntry.
|
isVoid | public boolean isVoid()(Code) | | Returns true if this PolicyEntry defines no Permissions, false otherwise.
|
|
|