NetIQ Mobile SDK for iOS  2.0
Access Manager iOS Framework for OAuth & OIDC
OIDTokenUtilities Class Reference

Provides data encoding/decoding methods, random string generators, etc. More...

#import <OIDTokenUtilities.h>

Inherits NSObject.

Instance Methods

(instancetype) - NS_UNAVAILABLE
 

Class Methods

(NSString *) + encodeBase64urlNoPadding:
 Base64url-nopadding encodes the given data. More...
 
(nullable NSString *) + randomURLSafeStringWithSize:
 Generates a URL-safe string of random data. More...
 
(NSData *) + sha265:
 SHA256 hashes the input string. More...
 

Detailed Description

Provides data encoding/decoding methods, random string generators, etc.

Method Documentation

◆ encodeBase64urlNoPadding:()

+ (NSString *) encodeBase64urlNoPadding: (NSData *)  data

Base64url-nopadding encodes the given data.

Parameters
dataThe input data.
Returns
The base64url encoded data as a NSString. Base64url-nopadding is used in several identity specs such as PKCE and OpenID Connect.

◆ randomURLSafeStringWithSize:()

+ (nullable NSString *) randomURLSafeStringWithSize: (NSUInteger)  size

Generates a URL-safe string of random data.

Parameters
sizeThe number of random bytes to encode. NB. the length of the output string will be greater than the number of random bytes, due to the URL-safe encoding.
Returns
Random data encoded with base64url.

◆ sha265:()

+ (NSData *) sha265: (NSString *)  inputString

SHA256 hashes the input string.

Parameters
inputStringThe input string.
Returns
The SHA256 data.

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