Authorizer: Authorizer

Description Usage Arguments Format Details Value Author(s) See Also

Description

Authorizer Class which maintains the authentication and access policy and authorizes activities.

Usage

1

Arguments

class

Character string containing the name of valid class in the NLPStudio package.

attributes

Vector containing the names of the attributes of the class.

subject

Character string containing the name of the active class requesting access.

object

Character string containing the name of the class to which access is being requested.

attribute

Character string containing the name of the class's attribute to which access is being requested.

type

Character representing the type of access being requested. Valid types are "r" for read and "w" for write access.

Format

An object of class R6ClassGenerator of length 24.

Details

Authorizer Methods:

new()

Instantiates the authorizer.

addClass(class, attributes)

Adds a class and its attributes to the list of valid classes and attributes

#'

removeClass(class)

Removes a class from the Authorizer.

addAttribute(class, attribute)

Adds an attribute to a class.

removeAttribute(class)

Removes an attribute from a class .

addPolicy(subject, object, attribute, type)

Creates an authorization policy.

removePolicy(subject, object = null, attribute = null)

Removes a policy based upon the parameters presented. The parameters are validated from left to right. e.g. if attribute is sent, the object can not be null.

authorize(subject, object, attribute, type)

Returns true if the subject is authorized to perform the requested type of action on the attribute.

Authorizer Parameters:

Value

A logical, TRUE if authorization is granted, FALSE otherwise.

Author(s)

John James, jjames@datasciencesalon.org

See Also

Other Validation Classes: Validator0, ValidatorClass, ValidatorDate, ValidatorExists, ValidatorLogical, ValidatorName, ValidatorNoSpaces, ValidatorNotEmpty, ValidatorNumeric, ValidatorPath, ValidatorString, ValidatorUrl, Validator


j2scode/NLPStudio documentation built on May 7, 2019, 8:58 p.m.