PolicyEngineClientImpl class
Policy rules for embedded wallets, signer share sets, and business accounts. All operations use REST and do not start the WaaS engine. Instances share the root client's state. NOTE: not yet thread-safe.
- Implemented types
Properties
Methods
-
batchAccountPolicyRules(
String businessAccountId, List< PolicyLayerRuleOperation> operations) → Future<WaasPolicyLayerResponse> -
Applies policy rule operations to a business account in one atomic batch.
override
-
batchSignerPolicyRules(
String chain, String accountAddress, List< PolicyLayerRuleOperation> operations, []) → Future<WaasPolicyLayerResponse> -
Applies policy rule operations to a signer in one atomic batch.
override
-
batchWalletPolicyRules(
String chain, String accountAddress, List< PolicyLayerRuleOperation> operations) → Future<WaasPolicyLayerResponse> -
Applies policy rule operations to an embedded wallet in one atomic batch.
override
-
buildAllowPolicyRule(
PolicyRuleInput rule) → WaasPolicyRule -
Builds a policy rule with ruleType set to 'allow'.
override
-
buildDenyPolicyRule(
PolicyRuleInput rule) → WaasPolicyRule -
Builds a policy rule with ruleType set to 'deny'.
override
-
getAccountPolicyLayer(
String businessAccountId) → Future< WaasPolicyLayerResponse> -
Gets a business account's policy layer.
override
-
getSignerPolicyLayer(
String chain, String accountAddress, []) → Future< WaasPolicyLayerResponse> -
Gets the caller's active signer policy layer.
override
-
getWalletPolicyLayer(
String chain, String accountAddress) → Future< WaasPolicyLayerResponse> -
Gets an embedded wallet's policy layer.
override
-
install(
DynamicClient client) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAccountPolicyRule(
String businessAccountId, String ruleId) → Future< WaasPolicyLayerResponse> -
Removes one rule from a business-account policy layer.
override
-
removeSignerPolicyRule(
String chain, String accountAddress, String ruleId, []) → Future< WaasPolicyLayerResponse> -
Removes one rule from a signer policy layer.
override
-
removeWalletPolicyRule(
String chain, String accountAddress, String ruleId) → Future< WaasPolicyLayerResponse> -
Removes one rule from an embedded-wallet policy layer.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateAccountPolicyLayer(
String businessAccountId, BusinessAccountPolicyLayerEdit request, [WaasPolicyLayerResponse? layer, String? proposalId, bool? autoExecute, SignedBusinessAccountIntent? signedIntent]) → Future< BusinessAccountPolicyLayerUpdateResult> -
Updates a business-account policy layer, signing an updatePolicyLayer intent when the layer carries a digest and RBAC version, and returning actionRequired when approvals are needed.
override
-
upsertAccountPolicyRule(
String businessAccountId, WaasPolicyRule rule) → Future< WaasPolicyLayerResponse> -
Creates or updates one rule on a business-account policy layer.
override
-
upsertSignerPolicyRule(
String chain, String accountAddress, WaasPolicyRule rule, []) → Future< WaasPolicyLayerResponse> -
Creates or updates one rule on a signer policy layer.
override
-
upsertWalletPolicyRule(
String chain, String accountAddress, WaasPolicyRule rule) → Future< WaasPolicyLayerResponse> -
Creates or updates one rule on an embedded-wallet policy layer.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited