API for performing security checks in DTML using _ methods.
Methods
|
|
SecurityCalledByExecutable
SecurityCheckPermission
SecurityGetUser
SecurityValidate
SecurityValidateValue
|
|
SecurityCalledByExecutable
|
SecurityCalledByExecutable ( md )
Return a boolean value indicating if this context was called
by an executable
|
|
SecurityCheckPermission
|
SecurityCheckPermission (
md,
permission,
object,
)
Check whether the security context allows the given permission on
the given object.
Arguments:
- permission
A permission name
- object
The object being accessed according to the permission
|
|
SecurityGetUser
|
SecurityGetUser ( md )
Gen the current authenticated user
|
|
SecurityValidate
|
SecurityValidate (
md,
inst,
parent,
name,
value,
)
Validate access.
Arguments:
- accessed
the object that was being accessed
- container
the object the value was found in
- name
The name used to access the value
- value
The value retrieved though the access.
The arguments may be provided as keyword arguments. Some of these
arguments may be ommitted, however, the policy may reject access
in some cases when arguments are ommitted. It is best to provide
all the values possible.
|
|
SecurityValidateValue
|
SecurityValidateValue ( md, value )
Convenience for common case of simple value validation.
|
|