AppAuth
Class Methods | List of all members
OIDScopeUtilities Class Reference

Provides convenience methods for dealing with scope strings. More...

#import <OIDScopeUtilities.h>

Inheritance diagram for OIDScopeUtilities:

Class Methods

(NSString *) + scopesWithArray:
 Converts an array of scope strings to a single scope string per the OAuth 2 spec. More...
 
(NSArray< NSString * > *) + scopesArrayWithString:
 Converts an OAuth 2 spec-compliant scope string to an array of scopes. More...
 

Detailed Description

Provides convenience methods for dealing with scope strings.

Method Documentation

◆ scopesArrayWithString:()

+ (NSArray<NSString *> *) scopesArrayWithString: (NSString *)  scopes

Converts an OAuth 2 spec-compliant scope string to an array of scopes.

Parameters
scopesAn OAuth 2 spec-compliant scope string.
Returns
An array of scope strings.
See also
https://tools.ietf.org/html/rfc6749#section-3.3

◆ scopesWithArray:()

+ (NSString *) scopesWithArray: (NSArray< NSString * > *)  scopes

Converts an array of scope strings to a single scope string per the OAuth 2 spec.

Parameters
scopesAn array of scope strings.
Returns
A space-delimited string of scopes.
See also
https://tools.ietf.org/html/rfc6749#section-3.3

The documentation for this class was generated from the following file: