public class ModularProtectionDomain extends ProtectionDomain
Constructor | Description |
---|---|
ModularProtectionDomain(CodeSource codeSource,
PermissionCollection permissions,
ModuleClassLoader moduleClassLoader) |
Construct a new, static instance.
|
ModularProtectionDomain(CodeSource codeSource,
PermissionCollection permissions,
ModuleClassLoader moduleClassLoader,
boolean dynamic) |
Construct a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
implies(Permission permission) |
Determine if the permission collection of this protection domain implies the given permission.
|
String |
toString() |
Get a string representation of this protection domain.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getClassLoader, getCodeSource, getPermissions, getPrincipals, staticPermissionsOnly
public ModularProtectionDomain(CodeSource codeSource, PermissionCollection permissions, ModuleClassLoader moduleClassLoader, boolean dynamic)
dynamic
parameter determines whether the policy is consulted for permission
checks; if false
, then only the specified permission collection is consulted.codeSource
- the code source of the protection domain (must not be null
)permissions
- the permission collection (must not be null
)moduleClassLoader
- the module class loader (must not be null
)dynamic
- true
if the protection domain should be dynamic, false
otherwisepublic ModularProtectionDomain(CodeSource codeSource, PermissionCollection permissions, ModuleClassLoader moduleClassLoader)
codeSource
- the code source of the protection domain (must not be null
)permissions
- the permission collection (must not be null
)moduleClassLoader
- the module class loader (must not be null
)public boolean implies(Permission permission)
getPermissions().implies(permission)
.implies
in class ProtectionDomain
permission
- the permission to check (must not be null
)true
if the permission is implied, false
otherwise.public String toString()
toString
in class ProtectionDomain
null
)Copyright © 2022 JBoss by Red Hat. All rights reserved.