|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Policy blackboard.platform.security.BbPolicy
public class BbPolicy
Blackboard-specific security policy. This is used during system startup to create permissions for the Blackboard web applications and system extensions.
Constructor Summary | |
---|---|
BbPolicy(java.security.Policy defaultPolicy)
|
Method Summary | |
---|---|
void |
addCodeSource(java.security.CodeSource codeSource,
java.security.PermissionCollection perms)
Used to set the permissions associated with all code sources used in the application. |
static java.security.Permissions |
getDefaultPermissions()
|
java.security.PermissionCollection |
getPermissions(java.security.CodeSource codesource)
Evaluates the global policy and returns a PermissionCollection object specifying the set of
permissions allowed for code from the specified
code source. |
void |
refresh()
Refreshes/reloads the policy configuration. |
void |
removeCodeSource(java.security.CodeSource codeSource)
Removes the specified code source from the list of policy entries |
Methods inherited from class java.security.Policy |
---|
getPermissions, getPolicy, implies, setPolicy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BbPolicy(java.security.Policy defaultPolicy) throws InitializationException
InitializationException
Method Detail |
---|
public void addCodeSource(java.security.CodeSource codeSource, java.security.PermissionCollection perms)
AllPermission
. Code
sources associated with user-installed extensions are associated only with the permissions
declared in the extension manifest, and acknowledged by the administrator at installation
time.
InitializationException
- This exception will be thrown if some error occurs reading the permission definitions, or the
file system components for installed web applications.public void removeCodeSource(java.security.CodeSource codeSource)
codeSource
- Code source to removepublic java.security.PermissionCollection getPermissions(java.security.CodeSource codesource)
PermissionCollection
object specifying the set of
permissions allowed for code from the specified
code source.
getPermissions
in class java.security.Policy
codesource
- the CodeSource associated with the caller.
This encapsulates the original location the code (where the code
came from) and the public key(s) of its signer.
java.lang.SecurityException
- if the current thread does not
have permission to call getPermissions
on the policy object.public void refresh()
refresh
on a file-based policy will cause the file to be re-read.
refresh
in class java.security.Policy
java.lang.SecurityException
- if the current thread does not
have permission to refresh this Policy object.public static java.security.Permissions getDefaultPermissions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |