# Class: com.pnfsoftware.jeb.core.units.code.android.ir.DEmuExternalPolicy

The emulation policy for API methods relying or depending on the execution environment, the date and time, and random number generators.

## Constructor: DEmuExternalPolicy

Description: Create a safe execution policy object \(all restrictions are enabled\).

## Constructor: DEmuExternalPolicy
- parameter: `restrictRandom`, type: `boolean`
- parameter: `restrictTime`, type: `boolean`
- parameter: `restrictEnv`, type: `boolean`


## Static Field: RESTRICT_ENV
Type: `int`

Constant value: `4`

## Static Field: RESTRICT_RANDOM
Type: `int`

Constant value: `1`

## Static Field: RESTRICT_TIME
Type: `int`

Constant value: `2`

## Method: addBlacklisted
- parameter: `sig`, type: `java.lang.String`


## Method: addRestricted
- parameter: `sig`, type: `java.lang.String`


## Method: addWhitelisted
- parameter: `sig`, type: `java.lang.String`


## Method: canAccess
- parameter: `fsig`, type: `java.lang.String`
- return type: `boolean`


## Method: canExecute
- parameter: `msig`, type: `java.lang.String`
- return type: `boolean`


## Method: isDefaultAllow
- return type: `boolean`


## Method: setDefaultAllow
- parameter: `defaultAllow`, type: `boolean`


