AWFApiPermissions

Objective-C

@interface AWFApiPermissions : NSObject

Swift

class AWFApiPermissions : NSObject

An AWFApiPermissions object contains the access permissions when interacting with the Aeris API.

  • Initializes and returns an AWFApiPermissions instance using the specified access permissions data.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDictionary:(nonnull NSDictionary *)dictionary;

    Swift

    init(dictionary: [AnyHashable : Any])

    Parameters

    dictionary

    The access permissions dictionary to use

    Return Value

    A permissions object initialized with the specified permissions dictionary

  • Returns a Boolean value indicating whether or not the configured permissions allow access to the specified endpoint path.

    Declaration

    Objective-C

    - (BOOL)canAccessEndpoint:(nonnull NSString *)endpoint;

    Swift

    func canAccessEndpoint(_ endpoint: String) -> Bool

    Parameters

    endpoint

    The endpoint path to check access for