Package nxt.addons

Class CloudDataClassLoader


public class CloudDataClassLoader extends SecureClassLoader
Load a contract and all its classes from data retrieved from the blockchain. The protection domain represents the permissions granted to the contract by aggregating permissions from the policy file in the following order 1. All default permissions provided by Java 2. Permissions from the "file://untrustedContractCode" codebase 3. Permissions from the "file://untrustedContractCode" codebase where signedBy is set to the public key of the account which uploaded the contract to the blockchain 4. Permissions from the "file://untrustedContractCode" codebase where principal is set to TransactionPrincipal followed by the transaction hash (full hash or tagged data hash or hash of the contract data)