-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from nevissecurity/feature/NEVISACCESSAPP-5644-…
…biometric-authentication-confirmation NEVISACCESSAPP-5644: Add Biometric authentication confirmation and cancellation
- Loading branch information
Showing
16 changed files
with
462 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
NevisExampleApp/Domain/Model/VerifyBiometricResponse.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// Nevis Mobile Authentication SDK Example App | ||
// | ||
// Copyright © 2024 Nevis Security AG. All rights reserved. | ||
// | ||
|
||
import NevisMobileAuthentication | ||
|
||
/// Response class indicating the SDK operation asks for user verification using a biometric authenticator. | ||
final class VerifyBiometricResponse: OperationResponse { | ||
|
||
// MARK: - Properties | ||
|
||
/// The selected authenticator. | ||
let authenticator: String | ||
|
||
/// The object that is notified of the verification result. | ||
let handler: BiometricUserVerificationHandler | ||
|
||
// MARK: - Initialization | ||
|
||
/// Creates a new instance. | ||
/// | ||
/// - Parameters: | ||
/// - authenticator: The selected authenticator. | ||
/// - handler: The object that is notified of the verification result. | ||
init(authenticator: String, | ||
handler: BiometricUserVerificationHandler) { | ||
self.authenticator = authenticator | ||
self.handler = handler | ||
super.init() | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
NevisExampleApp/Domain/Model/VerifyDevicePasscodeResponse.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// Nevis Mobile Authentication SDK Example App | ||
// | ||
// Copyright © 2024 Nevis Security AG. All rights reserved. | ||
// | ||
|
||
import NevisMobileAuthentication | ||
|
||
/// Response class indicating the SDK operation asks for user verification using the device passcode authenticator. | ||
final class VerifyDevicePasscodeResponse: OperationResponse { | ||
|
||
// MARK: - Properties | ||
|
||
/// The selected authenticator. | ||
let authenticator: String | ||
|
||
/// The object that is notified of the verification result. | ||
let handler: DevicePasscodeUserVerificationHandler | ||
|
||
// MARK: - Initialization | ||
|
||
/// Creates a new instance. | ||
/// | ||
/// - Parameters: | ||
/// - authenticator: The selected authenticator. | ||
/// - handler: The object that is notified of the verification result. | ||
init(authenticator: String, | ||
handler: DevicePasscodeUserVerificationHandler) { | ||
self.authenticator = authenticator | ||
self.handler = handler | ||
super.init() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.