EMOathFactory

Objective-C


@interface EMOathFactory : NSObject

Swift

class EMOathFactory : NSObject

A factory for creating objects that produce or affect OATH (or its relatives) OTPs.

Since

2.2
  • Creates a Gemalto OATH device with default settings returned from [EMOathFactory defaultSoftGemaltoOathSettings].

    Declaration

    Objective-C

    - (id<EMGemaltoOathDevice>)createGemaltoOathDeviceWithToken:
                                   (id<EMOathToken>)token
                                                          error:(NSError **)error;

    Swift

    func createGemaltoOathDevice(with token: (any EMOathToken)!) throws -> any EMGemaltoOathDevice

    Parameters

    token

    The token.

    error

    If an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL. @exception NSInternalInconsistencyException When the token supports more than one key (e.g. a token with EMTokenCapabilityDUAL_SEED), and its key has not been selected. See EMTokenCapability.

    Return Value

    A Gemalto OATH device object.

  • Creates a customized soft Gemalto OATH device.

    Declaration

    Objective-C

    - (id<EMGemaltoOathDevice>)
        createSoftGemaltoOathDeviceWithToken:(id<EMSoftOathToken>)token
                                    settings:(id<EMSoftGemaltoOathSettings>)settings
                                       error:(NSError **)error;

    Swift

    func createSoftGemaltoOathDevice(with token: (any EMSoftOathToken)!, settings: (any EMSoftGemaltoOathSettings)!) throws -> any EMGemaltoOathDevice

    Parameters

    token

    The token.

    settings

    The Gemalto OATH settings.

    error

    If an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL. @exception NSInternalInconsistencyException When the token supports more than one key (e.g. a token with EMTokenCapabilityDUAL_SEED), and its key has not been selected. See EMTokenCapability.

    Return Value

    A Gemalto OATH device.

  • Creates a mutable Gemalto OATH settings.

    Declaration

    Objective-C

    - (id<EMMutableSoftGemaltoOathSettings>)mutableSoftGemaltoOathSettings;

    Swift

    func mutableSoftGemaltoOathSettings() -> (any EMMutableSoftGemaltoOathSettings)!

    Return Value

    New mutable settings based on the default settings returned from [EMOathFactory defaultSoftGemaltoOathSettings].

  • Gets the default settings for Gemalto OATH devices.

    Declaration

    Objective-C

    - (id<EMSoftGemaltoOathSettings>)defaultSoftGemaltoOathSettings;

    Swift

    func defaultSoftGemaltoOathSettings() -> (any EMSoftGemaltoOathSettings)!

    Return Value

    The default settings.

  • Creates a customized soft OATH device using the specified settings.

    Declaration

    Objective-C

    - (id<EMOathDevice>)createSoftOathDeviceWithToken:(id<EMSoftOathToken>)token
                                             settings:
                                                 (id<EMSoftOathSettings>)settings
                                                error:(NSError **)error;

    Swift

    func createSoftOathDevice(with token: (any EMSoftOathToken)!, settings: (any EMSoftOathSettings)!) throws -> any EMOathDevice

    Parameters

    token

    The token.

    settings

    The OATH settings.

    error

    If an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL. @exception NSInternalInconsistencyException When the token supports more than one key (e.g. a token with EMTokenCapabilityDUAL_SEED), and its key has not been selected. See EMTokenCapability.

    Return Value

    The OATH device.

  • Creates a mutable OATH settings.

    Declaration

    Objective-C

    - (id<EMMutableSoftOathSettings>)mutableSoftOathSettings;

    Swift

    func mutableSoftOathSettings() -> (any EMMutableSoftOathSettings)!

    Return Value

    New mutable OATH settings based on the default OATH settings returned from [EMOathFactory defaultSoftOathSettings].

  • Gets the default settings for OATH devices.

    Declaration

    Objective-C

    - (id<EMSoftOathSettings>)defaultSoftOathSettings;

    Swift

    func defaultSoftOathSettings() -> (any EMSoftOathSettings)!

    Return Value

    The default settings.

  • Creates a customized soft DCV OATH device using the specified settings.

    Declaration

    Objective-C

    - (id<EMDcvOathDevice>)
        createSoftDcvOathDeviceWithToken:(id<EMSoftOathToken>)token
                                settings:(id<EMSoftDcvOathSettings>)settings
                                   error:(NSError **)error;

    Swift

    func createSoftDcvOathDevice(with token: (any EMSoftOathToken)!, settings: (any EMSoftDcvOathSettings)!) throws -> any EMDcvOathDevice

    Parameters

    token

    The token.

    settings

    The DCV OATH settings.

    error

    If an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL. @exception NSInternalInconsistencyException When the token supports more than one key (e.g. a token with EMTokenCapabilityDUAL_SEED), and its key has not been selected. See EMTokenCapability.

    Return Value

    The DCV OATH device.

  • Creates a mutable DCV OATH settings.

    Declaration

    Objective-C

    - (id<EMMutableSoftDcvOathSettings>)mutableSoftDcvOathSettings;

    Swift

    func mutableSoftDcvOathSettings() -> (any EMMutableSoftDcvOathSettings)!

    Return Value

    New mutable DCV OATH settings based on the default OATH settings returned from [EMOathFactory defaultSoftOathSettings].

  • Gets the default settings for DCV OATH devices.

    Declaration

    Objective-C

    - (id<EMSoftDcvOathSettings>)defaultSoftDcvOathSettings;

    Swift

    func defaultSoftDcvOathSettings() -> (any EMSoftDcvOathSettings)!

    Return Value

    The default settings.