ProtectCallback

open class ProtectCallback : MultipleValuesCallback, NodeAware

Parent Callback used by Ping One Protect callbacks

Property

  • An array of inputName values

    Declaration

    Swift

    public var outputNames: [String]
  • An array of input values

    Declaration

    Swift

    public var outputValues: [String : Any]
  • Client Error input key in callback response

    Declaration

    Swift

    public var clientErrorKey: String
  • Indicates if the callback is derived from a MetadataCallback

    Declaration

    Swift

    public var derivedCallback: Bool
  • The Node that associate with the Callback

    Declaration

    Swift

    public internal(set) var node: Node? { get }
  • Designated initialization method for Ping Protect callbacks

    Throws

    AuthError.invalidCallbackResponse for invalid callback response

    Declaration

    Swift

    public required init(json: [String : Any]) throws

    Parameters

    json

    JSON object of the callback

  • Sets clientError value in callback response

    Declaration

    Swift

    public func setClientError(_ clientError: String)

    Parameters

    clientError

    String value of clientError]

  • Check if the given MetadataCallback is a derived callback

    Declaration

    Swift

    public static func isDerivedCallback(_ json: [String : Any]) -> Bool

    Parameters

    json

    raw JSON payload for MetdataCallback

    Return Value

    true if this is a derived callback, otherwise false