Package org.pkl.core
Interface SecurityManager
-
public interface SecurityManagerEnforces a security model duringevaluation.Use
SecurityManagersto obtain or construct an instance of this type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckImportModule(java.net.URI importingModule, java.net.URI importedModule)Checks if the given importing module may import the given imported module.voidcheckReadResource(java.net.URI resource)Checks if the given resource may be read.voidcheckResolveModule(java.net.URI uri)Checks if the given module may be resolved.voidcheckResolveResource(java.net.URI resource)Checks if the given resource may be resolved.
-
-
-
Method Detail
-
checkResolveModule
void checkResolveModule(java.net.URI uri) throws SecurityManagerExceptionChecks if the given module may be resolved. This check is required before any attempt is made to access the given URI.- Throws:
SecurityManagerException
-
checkImportModule
void checkImportModule(java.net.URI importingModule, java.net.URI importedModule) throws SecurityManagerExceptionChecks if the given importing module may import the given imported module.- Throws:
SecurityManagerException
-
checkReadResource
void checkReadResource(java.net.URI resource) throws SecurityManagerExceptionChecks if the given resource may be read.- Throws:
SecurityManagerException
-
checkResolveResource
void checkResolveResource(java.net.URI resource) throws SecurityManagerExceptionChecks if the given resource may be resolved. This check is required before any attempt is made to access the given URI.- Throws:
SecurityManagerException
-
-