@Beta public interface AdvisoryDynamicPermissions
ProxyPreparer to grant these permissions dynamically.
The PERMISSIONS.LIST file must be UTF-8 encoded, the format of the file
is line based, length is not limited, however lines must be readable by
BufferedReader.readLine().
A permission is represented by three whitespace delimited strings:
java.security.Permission and must define a
2-argument constructor that takes a name string and an
actions string.
Permission class identified
by type.
Permission class
identified by type.
The encoded format is:
(type)or
(type "name")or
(type "name" "actions")where name and actions are strings that must be encoded for proper parsing. Specifically, the
",\,
carriage return, and line feed characters must be escaped using
\", \\,\r, and
\n, respectively.
The encoded string contains no leading or trailing whitespace characters. A single space character is used between type and "name" and between "name" and "actions".
| Modifier and Type | Field and Description |
|---|---|
static Permission[] |
DEFAULT_PERMISSIONS |
| Modifier and Type | Method and Description |
|---|---|
Permission[] |
getPermissions()
Advisory permissions for smart proxy's, the client may or may not grant them.
|
static final Permission[] DEFAULT_PERMISSIONS
Permission[] getPermissions()
ProxyPreparer implementation. If the client
chooses to grant these permissions, it may do so to a specific proxy
with Principals belonging to a specific ClassLoader after authenticating
the proxy's principal.Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.