FRAppIntegrityCallback

public class FRAppIntegrityCallback : MultipleValuesCallback
  • The Challenge received from server in Output key

    Declaration

    Swift

    public private(set) var challenge: String { get }
  • The attest token received from server in Output key

    Declaration

    Swift

    public private(set) var attestToken: String { get }
  • Payload to sign

    Declaration

    Swift

    public private(set) var payload: String? { get }
  • Declaration

    Swift

    public private(set) var appIntegritykeys: FRAppIntegrityKeys { get }

Init

  • Designated initialization method for AppIntegrityCallback

    Throws

    AuthError.invalidCallbackResponse for invalid callback response

    Declaration

    Swift

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

    Parameters

    json

    JSON object of AppIntegrityCallback

Set values

  • Sets token value in callback response

    Declaration

    Swift

    public func setAttestation(_ token: String)

    Parameters

    token

    Base64 String value of attestation

  • Sets error value in callback response

    Declaration

    Swift

    public func setClientError(_ error: String)

    Parameters

    error

    String value of error

  • Sets keyId value in callback response

    Declaration

    Swift

    public func setkeyId(_ keyId: String)

    Parameters

    keyId

    Base64 String value of keyId

  • Sets token value in callback response

    Declaration

    Swift

    public func setAssertion(_ token: String)

    Parameters

    token

    Base64 String value of verification

  • Sets clientData value in callback response

    Declaration

    Swift

    public func setClientData(_ clientData: String)

    Parameters

    clientData

    Base64 String value of clientData

  • Sets payload value to assert

    Declaration

    Swift

    public func setPayload(_ payload: String)

    Parameters

    payload

    Assertion payload to sign

  • Attest the device for iOS14 and above devices

    Declaration

    Swift

    @available(iOS 14.0, *)
    open func requestIntegrityToken() async throws
  • Attest the device

    Declaration

    Swift

    open func requestIntegrityToken(completionHandler: @escaping (Error?) -> (Void))

    Parameters

    completionHandler

    Returns FRAppIntegrityFailure for Error and nil if there are no errors

  • verify the attestation completed or not

    Declaration

    Swift

    public func isAttestationCompleted() -> Bool

    Return Value

    true or false if the attestation key exist