TGFFido2OperationInfo
Objective-C
@interface TGFFido2OperationInfo : NSObject
Swift
class TGFFido2OperationInfo : NSObject
A class that holds common information for an ongoing operation started from TGFClient that the UI needs to display to the user.
@since 1.0.0
-
Initializes an
TGFFido2OperationInfoobject with details about the ongoing operation.Declaration
Objective-C
- (nonnull instancetype)initWithRpId:(NSString *_Nonnull)rpId rpName:(NSString *_Nullable)rpName userName:(NSString *_Nullable)userName userDisplayName:(NSString *_Nullable)userDisplayName operationType:(TGFFido2OperationType)operationType;Swift
init(rpId: String, rpName: String?, userName: String?, userDisplayName: String?, operationType: TGFFido2OperationType)Parameters
rpIdThe identifier of the Relying Party that initiated the request.
rpNameThe friendly name of the Relying Party.
userNameThe username for the account.
userDisplayNameThe display name for the user account.
operationTypeThe type of FIDO2 operation being performed (e.g., registration or authentication).
Return Value
An initialized
TGFFido2OperationInfoobject. -
The Relying Party ID from which the request originated from.
Declaration
Objective-C
@property (readonly) NSString *_Nonnull rpId;Swift
var rpId: String { get } -
The friendly name of the Relying Party.
Note
It is empty when operationType = TGFFido2OperationTypeAuthenticationDeclaration
Objective-C
@property (readonly) NSString *_Nullable rpName;Swift
var rpName: String? { get } -
The username associated with the operation.
Note
It is empty when operationType = TGFFido2OperationTypeAuthenticationDeclaration
Objective-C
@property (readonly) NSString *_Nullable userName;Swift
var userName: String? { get } -
The user’s display name.
Note
It is empty when operationType = TGFFido2OperationTypeAuthenticationDeclaration
Objective-C
@property (readonly) NSString *_Nullable userDisplayName;Swift
var userDisplayName: String? { get } -
The FIDO2 operation type (e.g. registration).
Declaration
Objective-C
@property (readonly) TGFFido2OperationType operationType;Swift
var operationType: TGFFido2OperationType { get }