Package org.pkl.core
Interface SecurityManager
public interface SecurityManager
Enforces a security model during
evaluation.
Use SecurityManagers to obtain or construct an instance of this type.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckImportModule(URI importingModule, URI importedModule) Checks if the given importing module may import the given imported module.voidcheckReadResource(URI resource) Checks if the given resource may be read.voidcheckResolveModule(URI uri) Checks if the given module may be resolved.voidcheckResolveResource(URI resource) Checks if the given resource may be resolved.
-
Method Details
-
checkResolveModule
Checks if the given module may be resolved. This check is required before any attempt is made to access the given URI.- Throws:
SecurityManagerException
-
checkImportModule
Checks if the given importing module may import the given imported module.- Throws:
SecurityManagerException
-
checkReadResource
Checks if the given resource may be read.- Throws:
SecurityManagerException
-
checkResolveResource
Checks if the given resource may be resolved. This check is required before any attempt is made to access the given URI.- Throws:
SecurityManagerException
-