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 }
-
Designated initialization method for AppIntegrityCallback
Throws
AuthError.invalidCallbackResponse for invalid callback responseDeclaration
Swift
public required init(json: [String : Any]) throwsParameters
jsonJSON object of AppIntegrityCallback
-
Sets
tokenvalue in callback responseDeclaration
Swift
public func setAttestation(_ token: String)Parameters
tokenBase64 String value of attestation
-
Sets
errorvalue in callback responseDeclaration
Swift
public func setClientError(_ error: String)Parameters
errorString value of
error -
Sets
keyIdvalue in callback responseDeclaration
Swift
public func setkeyId(_ keyId: String)Parameters
keyIdBase64 String value of keyId
-
Sets
tokenvalue in callback responseDeclaration
Swift
public func setAssertion(_ token: String)Parameters
tokenBase64 String value of verification
-
Sets
clientDatavalue in callback responseDeclaration
Swift
public func setClientData(_ clientData: String)Parameters
clientDataBase64 String value of clientData
-
Sets
payloadvalue to assertDeclaration
Swift
public func setPayload(_ payload: String)Parameters
payloadAssertion payload to sign
-
requestIntegrityToken()AsynchronousAttest the device for iOS14 and above devices
Throws
FRDeviceCheckAPIFailureDeclaration
Swift
@available(iOS 14.0, *) open func requestIntegrityToken() async throws -
Attest the device
Declaration
Swift
open func requestIntegrityToken(completionHandler: @escaping (Error?) -> (Void))Parameters
completionHandlerReturns FRAppIntegrityFailure for Error and nil if there are no errors
-
verify the attestation completed or not
Declaration
Swift
public func isAttestationCompleted() -> BoolReturn Value
true or false if the attestation key exist
View on GitHub