StaticMap class get policy

Returns the current value of the specified key in the current copy of the dictionary associated with the resource.

Type: expression policy.

Syntax

get {sid: Handle, key: Key}

In this case:

Returned value

The policy returns the value of the specified key, or KSS_DENY in the following cases:

Example

...

/* For a Server entity query via the security interface, the value of key "k0" in the current copy

of its associated dictionary is compared to the number 0 */

security src=Server, method=Get {

assert(M.get {sid: src_sid, key: "k1" } != 0)

}

Page top