Classes

The following classes are available globally.

  • A concrete implementation of the TGFAuthenticator protocol that uses a user-provided passcode for FIDO2 user verification.

    This class manages the entire lifecycle of a passcode credential, including its creation, deletion, and modification. It uses a delegate pattern to request the presentation of a secure keyboard UI when user interaction is required.

    @since 1.0.0

    See more

    Declaration

    Objective-C

    
    @interface TGFPasscodeAuthenticator : NSObject <TGFAuthenticator>

    Swift

    class TGFPasscodeAuthenticator : NSObject, TGFAuthenticator
  • A utility class for globally configuring the behavior of the Passcode Authenticator.

    @discussion By default, the FIDO2 SDK uses reasonable and secure settings. This class allows an application to customize certain behaviors, such as passcode complexity rules or keyboard appearance.

    @since 1.0.0

    See more

    Declaration

    Objective-C

    
    @interface TGFPasscodeConfig : NSObject

    Swift

    class TGFPasscodeConfig : NSObject
  • An abstract base class for defining rules that a passcode must adhere to.

    @discussion This class is not intended to be used directly. Instead, create instances of its concrete subclasses (e.g., for length or complexity) and pass them to +[TGFPasscodeConfig setPasscodeRules:error:] to enforce a passcode policy.

    @since 1.3.0

    Declaration

    Objective-C

    
    @interface TGFPasscodeRule : NSObject

    Swift

    class TGFPasscodeRule : NSObject
  • A concrete passcode rule that validates whether a passcode’s length falls within a globally configured range.

    This rule enforces minimum and maximum length requirements for user passcodes. The length constraints are configured globally using the class methods provided. If a passcode’s length is outside the minimumLength and maximumLength bounds, validation will fail with a relevant NSError.

    This class is a subclass of TGFPasscodeRule and is used to enforce a passcode policy.

    @since 1.3.0

    See more

    Declaration

    Objective-C

    
    @interface TGFPasscodeRuleLength : TGFPasscodeRule

    Swift

    class TGFPasscodeRuleLength : TGFPasscodeRule
  • A concrete passcode rule that validates whether a passcode is a palindrome.

    This rule prevents users from creating weak passcodes that read the same forwards and backwards, such as “12321” or “5445”. If the validation fails, an NSError is generated with a domain and code specific to this rule violation.

    This class is a subclass of TGFPasscodeRule and is used to enforce a passcode policy.

    @since 1.3.0

    Declaration

    Objective-C

    
    @interface TGFPasscodeRulePalindrome : TGFPasscodeRule

    Swift

    class TGFPasscodeRulePalindrome : TGFPasscodeRule
  • A concrete passcode rule that validates whether a passcode consists of a sequential series of digits.

    This rule prevents users from creating weak passcodes that are easy to guess, such as ascending (“123456”) or descending (“654321”) sequences. If the validation fails, an NSError is generated with a domain and code specific to this rule violation.

    This class is a subclass of TGFPasscodeRule and is used to enforce a passcode policy. @since 1.3.0

    Declaration

    Objective-C

    
    @interface TGFPasscodeRuleSeries : TGFPasscodeRule

    Swift

    class TGFPasscodeRuleSeries : TGFPasscodeRule
  • A concrete passcode rule that validates whether a passcode consists of all identical digits.

    This rule prevents users from creating weak passcodes where all characters are the same, such as “111111” or “8888”. If the validation fails, an NSError is generated with a domain and code specific to this rule violation.

    This class is a subclass of TGFPasscodeRule and is used to enforce a passcode policy. @since 1.3.0

    Declaration

    Objective-C

    
    @interface TGFPasscodeRuleUniform : TGFPasscodeRule

    Swift

    class TGFPasscodeRuleUniform : TGFPasscodeRule
  • Provides descriptive information about a FIDO2 authenticator.

    @since 1.0.0

    See more

    Declaration

    Objective-C

    
    @interface TGFAuthenticatorDescriptor : NSObject

    Swift

    class TGFAuthenticatorDescriptor : NSObject
  • Information about an authenticator that helps a user decide which authenticator to select for an FIDO2 request that matches multiple authenticators.

    @since 1.0.0

    See more

    Declaration

    Objective-C

    
    @interface TGFFido2AuthenticatorInfo : NSObject

    Swift

    class TGFFido2AuthenticatorInfo : NSObject
  • Encapsulates information about a registered FIDO2 authenticator.

    @since 1.0.0

    See more

    Declaration

    Objective-C

    
    @interface TGFFido2AuthenticatorRegistrationInfo : TGFFido2AuthenticatorInfo

    Swift

    class TGFFido2AuthenticatorRegistrationInfo : TGFFido2AuthenticatorInfo
  • A FIDO2 client that processes FIDO2 requests and generates FIDO2 responses.

    @since 1.0.0

    See more

    Declaration

    Objective-C

    
    @interface TGFFido2Client : NSObject

    Swift

    class TGFFido2Client : NSObject
  • A factory that creates TGFFido2Client objects.

    @since 1.0.0

    See more

    Declaration

    Objective-C

    
    @interface TGFFido2ClientFactory : NSObject

    Swift

    class TGFFido2ClientFactory : NSObject
  • Provides a global configuration point for the FIDO2 SDK.

    This class allows applications to customize security features and other behaviors of the SDK. By default, the SDK is configured for maximum security. Use the methods in this class to adjust settings like user verification policies, secure logging, and TLS Certificates.

    @since 1.0.0

    See more

    Declaration

    Objective-C

    
    @interface TGFFido2Config : NSObject

    Swift

    class TGFFido2Config : 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

    See more

    Declaration

    Objective-C

    
    @interface TGFFido2OperationInfo : NSObject

    Swift

    class TGFFido2OperationInfo : NSObject
  • Represents a FIDO2 request for operations such as registration or authentication.

    An instance of this class is created by the TGFFido2RequestFactory.

    @since 1.0.0

    See more

    Declaration

    Objective-C

    
    @interface TGFFido2Request : NSObject

    Swift

    class TGFFido2Request : NSObject
  • A factory class used to create instances of TGFFido2Request from various sources, such as a JSON string or a native passkey request object.

    @since 1.0.0

    See more

    Declaration

    Objective-C

    
    @interface TGFFido2RequestFactory : NSObject

    Swift

    class TGFFido2RequestFactory : NSObject
  • An immutable object that encapsulates all the arguments required to process a FIDO2 request.

    @since 1.0.0

    See more

    Declaration

    Objective-C

    
    @interface TGFFido2RespondArgs : NSObject

    Swift

    class TGFFido2RespondArgs : NSObject
  • A builder of TGFFido2RespondArgs instances.

    @since 1.0.0

    See more

    Declaration

    Objective-C

    
    @interface TGFFido2RespondArgsBuilder : NSObject

    Swift

    class TGFFido2RespondArgsBuilder : NSObject