Class EdalPolicy
- java.lang.Object
-
- java.security.Policy
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalPolicy
-
public class EdalPolicy extends java.security.Policy
Define our ownPolicy
for the eDAL system, that use aPermissionProvider
to store and providePermission
s.
-
-
Constructor Summary
Constructors Constructor Description EdalPolicy(PermissionProvider permissionProvider)
Constructor forEdalPolicy
with givenPermissionProvider
.
-
Method Summary
Modifier and Type Method Description java.security.PermissionCollection
getPermissions(java.security.CodeSource codesource)
java.security.PermissionCollection
getPermissions(java.security.ProtectionDomain domain)
boolean
implies(java.security.ProtectionDomain domain, java.security.Permission permission)
void
refresh()
-
-
-
Constructor Detail
-
EdalPolicy
public EdalPolicy(PermissionProvider permissionProvider)
Constructor forEdalPolicy
with givenPermissionProvider
.- Parameters:
permissionProvider
- aPermissionProvider
object.
-
-
Method Detail
-
getPermissions
public java.security.PermissionCollection getPermissions(java.security.CodeSource codesource)
- Overrides:
getPermissions
in classjava.security.Policy
-
getPermissions
public java.security.PermissionCollection getPermissions(java.security.ProtectionDomain domain)
- Overrides:
getPermissions
in classjava.security.Policy
-
implies
public boolean implies(java.security.ProtectionDomain domain, java.security.Permission permission)
- Overrides:
implies
in classjava.security.Policy
-
refresh
public void refresh()
- Overrides:
refresh
in classjava.security.Policy
-
-