AWSCognitoIdentitySoftwareMfaSetupRequiredDetails

Objective-C

@interface AWSCognitoIdentitySoftwareMfaSetupRequiredDetails : NSObject

Swift

class AWSCognitoIdentitySoftwareMfaSetupRequiredDetails : NSObject

When responding to a software mfa setup required challenge this encapsulates the end user’s user code and friendly name for their TOTP

  • The end user’s code from their software mfa

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) NSString *userCode;

    Swift

    var userCode: String { get set }
  • The friendly device name that will be specified when this software mfa is requested.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSString *friendlyDeviceName;

    Swift

    var friendlyDeviceName: String? { get set }
  • Initializer given the software tokens’ code and friendly device name *

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUserCode:(nonnull NSString *)userCode
                          friendlyDeviceName:
                              (NSString *_Nullable)friendlyDeviceName;

    Swift

    init(userCode: String, friendlyDeviceName: String?)