Enums

APIError

public enum APIError: Error, Equatable

Cases

apiNoDataReceived

case apiNoDataReceived

Request response code is 200 but there is no response data received or Data object is nil.

apiBadStatusCode(statusCode:message:)

case apiBadStatusCode(statusCode: Int, message: String?)

Request response code is different than 200.

apiCannotCreateRequest

case apiCannotCreateRequest

Cannot construct URLRequest from APIRequest.

apiMalformedJSON(message:)

case apiMalformedJSON(message: String?)

JSON received as a response is invalid.

apiRequestCannotCreateURL

case apiRequestCannotCreateURL

Cannot create URL instance.

apiInvalidSchemeInURL

case apiInvalidSchemeInURL

URL scheme component is empty or nil.

apiInvalidHostInURL

case apiInvalidHostInURL

URL host component is empty or nil.

apiNoClientSettings

case apiNoClientSettings

No client settings fetched from server.

AuthenticationError

public enum AuthenticationError: Error, Equatable

An enumeration that describes authentication issues.

Cases

emptyIdentity

case emptyIdentity

One or more of dtas, token or mpinId properties of the user are empty.

emptyScope

case emptyScope

scope array is empty.

invalidAccessId

case invalidAccessId

AccessId for authentication is empty or nil.

invalidPin

case invalidPin

Pin is wrong or has invalid format, e.g contains letters or special symbols.

invalidCryptoValue

case invalidCryptoValue

Values returned from crypto library are empty.

invalidChallenge

case invalidChallenge

Challenge received from pass1 is empty or nil.

invalidAuthOTT

case invalidAuthOTT

There is an unknown issue when handling the pass2 request-response object.

invalidAuthenticateResponse

case invalidAuthenticateResponse

There is an unknown issue when handling the authenticate request-response.

ConfigurationError

public enum ConfigurationError: Error, Equatable

An enumeration that describes issues with the SDK configuration.

Cases

configurationEmptyProjectId

case configurationEmptyProjectId

RegistrationError

public enum RegistrationError: Error, Equatable

An enumeration that describes registration issues.

Cases

invalidUserId

case invalidUserId

User id is empty or nil.

userAlreadyRegistered

case userAlreadyRegistered

There is already a registered user with this user id.

invalidAccessId

case invalidAccessId

invalidDeviceName

case invalidDeviceName

Device name is empty or nil.

expiredActivationCodeDate

case expiredActivationCodeDate

Registration activation code has expired.

invalidActivationCode

case invalidActivationCode

invalidRegistrationResponse

case invalidRegistrationResponse

invalidSignatureResponse

case invalidSignatureResponse

Either first client secret share or dtas are empty or nil.

unsupportedEllipticCurve

case unsupportedEllipticCurve

Curve returned by the platform is unsupported by this version of the SDK.

invalidClientSecretResponse

case invalidClientSecretResponse

The second client secret share is either empty or nil.

invalidPin

case invalidPin

Provided PIN code does not have a correct length or contains symbols other than digits.

invalidClientSecret

case invalidClientSecret

Client secret is empty or nil.

invalidClientToken

case invalidClientToken

Client token is empty or nil.

SQLiteUserStorageError

public enum SQLiteUserStorageError: Error

Cases

fileError

case fileError

dbNotCreated

case dbNotCreated

sqliteError(resultCode:)

case sqliteError(resultCode: Int32)

encryptionError

case encryptionError