OAuthResult

public final class OAuthResult : NSObject, ResultProtocol

Holds the result of the authentication request.

  • The type of error.

    Declaration

    Swift

    public fileprivate(set) var error: Error?
  • Construct an instance containing the exception.

    Declaration

    Swift

    public init(error: Error)
  • Parses the object into an OAuthResult.

    Throws

    IBMMobileKitError.serverError, IBMMobileKitError.invalidDataFromServer

    Declaration

    Swift

    open static func parse(_ data: [String:Any]) throws -> OAuthResult
  • Serialize the object to a JSON string.

    Declaration

    Swift

    public func serializeToJson() -> String
  • Serialize the object to an OAuthToken. The function returns nil is an error is present.

    Declaration

    Swift

    public func serializeToToken() -> OAuthToken?