PermitSigner..::..Verify Method

This method will verify a permit according to a contract address and a submitting address (and a set of permissions). On failure an appropriate error will be thrown according to the type of error.

Namespace:  SecretNET.AccessControl
Assembly:  SecretNET (in SecretNET.dll)

Syntax


public bool Verify(
	Permit permit,
	string address,
	string contract,
	PermissionType[] permissions,
	bool throwException
)

Parameters

permit
Type: SecretNET.AccessControl..::..Permit
The permit.
address
Type: String
The address.
contract
Type: String
The contract.
permissions
Type: array<PermissionType>[]()[][]
The permissions.
throwException
Type: Boolean
if set to true [throw exception].

Return Value

true if XXXX, false otherwise.