Home Manual Reference Source
public class | source

SecurityContext

Represents the RBAC related payload from the read-resource-description operation.

Static Member Summary

Static Public Members
public static get

A security context with hardcoded permissions to read resources, write and execute operations are not allowed.

public static get

RWX

A security context with hardcoded permissions to read, write and execute any resource.

Member Summary

Public Members
public get
public get

Method Summary

Public Methods
public

isExecutable(operation: string): boolean

public

isReadable(attribute: string): boolean

public

isWritable(attribute: string): boolean

Static Public Members

public static get READ_ONLY source

A security context with hardcoded permissions to read resources, write and execute operations are not allowed.

public static get RWX source

A security context with hardcoded permissions to read, write and execute any resource.

Public Members

public get readable: boolean source

Return:

boolean

whether the security context is readable

public get writable: boolean source

Return:

boolean

whether the security context is writable

Public Methods

public isExecutable(operation: string): boolean source

Params:

NameTypeAttributeDescription
operation string

The operation to check.

Return:

boolean

whether the operation is executable

public isReadable(attribute: string): boolean source

Params:

NameTypeAttributeDescription
attribute string

The attribute to check.

Return:

boolean

whether the attribute is readable

public isWritable(attribute: string): boolean source

Params:

NameTypeAttributeDescription
attribute string

The attribute to check.

Return:

boolean

whether the attribute is writable