PCClientCredentials

Version 1.4 - Updated on 9/23/2016

Superclass: NSObject Declared In: PCClientCredentials.h

Contents

Introduction

The PCClientCredentials class stores client credentials such as clientID, clientSecret and redirectURL received during the application registration on the Developer Portal.

Methods

initWithClientID

- (id)initWithClientID:(NSString *)clientID clientSecret:(NSString *)clientSecret 
        redirectURL:(NSString *)redirectURL keychainID:(NSString *)keychainID; 
  • Discussion
    Creates a PCClientCredentials object passing clientID, clientSecret, redirectURL and keychainID. If keychainID is passed nil, access token received through OAuth 2.0 call is not saved in the keychain.
  • Reference:
    For more information, refer to Keychain Services page in iOS Developer Library.

Properties

clientID

@property (nonatomic,
    readonly) NSString *clientID;
  • Discussion
    Unique client ID received while registering a third party application with Verizon Developer Program.

clientSecret

@property (nonatomic,
    readonly) NSString *clientSecret; 
  • Discussion
    Client secret received while registering a third party application with Verizon Developer Program.

keychainID

@property (nonatomic,
    readonly) NSString *keychainID; 
  • Discussion
    Set a value to keychainID, if authorization token needs to be persisted and stored in Keychain.

redirectURLString

@property (nonatomic,
    readonly) NSString *redirectURLString; 
  • Discussion
    Callback URL set by a developer while registering a third party application with Verizon Developer Program.

Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.