TGFFido2AuthenticatorRegistrationInfo
Objective-C
@interface TGFFido2AuthenticatorRegistrationInfo : TGFFido2AuthenticatorInfo
Swift
class TGFFido2AuthenticatorRegistrationInfo : TGFFido2AuthenticatorInfo
Encapsulates information about a registered FIDO2 authenticator.
@since 1.0.0
-
-initWithAuthenticatorId:name: icon: credentialId: rpIdHash: userId: verifyMethod: userName: userDisplayName: rpId: creationDate: lastUsedDate: Initializes an instance of
TGFFido2AuthenticatorRegistrationInfowith detailed information about a specific authenticator registration.Declaration
Objective-C
- (nonnull instancetype) initWithAuthenticatorId:(NSString *_Nonnull)authenticatorId name:(NSString *_Nonnull)name icon:(NSData *_Nullable)icon credentialId:(NSMutableData *_Nullable)credentialId rpIdHash:(NSMutableData *_Nullable)rpIdHash userId:(NSString *_Nullable)userId verifyMethod:(TGFVerifyMethod)method userName:(NSString *_Nullable)userName userDisplayName:(NSString *_Nullable)userDisplayName rpId:(NSString *_Nullable)rpId creationDate:(nonnull NSDate *)creationDate lastUsedDate:(NSDate *_Nullable)lastUsedDate;Swift
init(authenticatorId: String, name: String, icon: Data?, credentialId: NSMutableData?, rpIdHash: NSMutableData?, userId: String?, verifyMethod method: TGFVerifyMethod, userName: String?, userDisplayName: String?, rpId: String?, creationDate: Date, lastUsedDate: Date?)Parameters
authenticatorIdThe ID of the authenticator (AAGUID).
nameThe name of the authenticator.
iconAn NSData representation of the authenticator image icon.
credentialIdThe credentialId of a registered authenticator.
rpIdHashA hash of the rpId for the registered authenticator.
userIdThe userId of the registered authenticator.
methodThe user verification method supported by the authenticator.
userNameThe username of the registered Authenticator.
userDisplayNameThe user display name for the registered Authenticator.
rpIdThe rpId for the registered authenticator.
creationDateThe creation time for the registered authenticator.
lastUsedDateThe last used time for the registered authenticator.
Return Value
An initialized
TGFFido2AuthenticatorRegistrationInfoobject. -
The corresponding credentialId tying to a specific registration
Declaration
Objective-C
@property (readonly) NSMutableData *_Nullable credentialId;Swift
var credentialId: NSMutableData? { get } -
The corresponding rpIdHash tying to a specific registration
Declaration
Objective-C
@property (readonly) NSMutableData *_Nullable rpIdHash;Swift
var rpIdHash: NSMutableData? { get } -
The corresponding userId tying to a specific registration
@since 1.6.0
Declaration
Objective-C
@property (readonly) NSString *_Nullable userId;Swift
var userId: String? { get } -
The corresponding userName tying to a specific registration
@since 4.0.0
Declaration
Objective-C
@property (readonly) NSString *_Nullable userName;Swift
var userName: String? { get } -
The corresponding user display name tying to a specific registration
@since 4.0.0
Declaration
Objective-C
@property (readonly) NSString *_Nullable userDisplayName;Swift
var userDisplayName: String? { get } -
The corresponding rpId tying to a specific registration
@since 4.0.0
Declaration
Objective-C
@property (readonly) NSString *_Nullable rpId;Swift
var rpId: String? { get } -
The date and time when this authenticator was created.
@since 4.0.0
Declaration
Objective-C
@property (readonly) NSDate *_Nullable creationDate;Swift
var creationDate: Date? { get } -
The date and time when this authenticator was last used. This value is updated each time the authenticator successfully completes an authentication operation.
@since 4.0.0
Declaration
Objective-C
@property (readonly) NSDate *_Nullable lastUsedDate;Swift
var lastUsedDate: Date? { get } -
Wipes all sensitive data
Declaration
Objective-C
- (void)wipe;Swift
func wipe()