Enumerations
The following enumerations are available globally.
-
Declaration
Swift
@objc(VSSBaseClientError) public enum BaseClientError : Int, LocalizedError
-
Declares error types and codes
- noUrlInRequest: Provided URLRequest doesn’t have url
- wrongResponseType: Response is not of HTTPURLResponse type
Declaration
Swift
@objc(VSSServiceConnectionError) public enum ServiceConnectionError : Int, LocalizedError
-
NetworkRetryOperation errors
- timeout: timeout
- reachabilityError: SCNetworkReachability returned error
Declaration
Swift
public enum NetworkRetryOperationError : LocalizedError
-
Declares error types and codes
- urlRequestIsIncompleteOrInvalid: Provided URLRequest is incomplete or invalid
Declaration
Swift
@objc(VSSRequestError) public enum RequestError : Int, LocalizedError
-
Declares error types and codes
- invalidGetRequestParameters: GET request parameters are not [String: String] and cannot be encoded
- urlComponentsConvertingFailed: Error building url from components during GET request
- getQueryWithDecodableIsNotSupported: GET query with Encodable body is not supported
- duplicateHeadersKey: Passed headers dictionary contains forbidden http header keys
Declaration
Swift
@objc(VSSServiceRequestError) public enum ServiceRequestError : Int, LocalizedError
-
Retry choice
- noRetry: should not retry
- retryService: retry due to service error
- retryAuth: retry due to auth error (should try with new Access Token)
- retryConnection: retry due connection error
Declaration
Swift
public enum RetryChoice
-
Declares error types and codes for CardManager
- cardIsNotVerified: Virgil Card was not verified by cardVerifier
- gotWrongCard: Response Card doesn’t match to what was queried
- chainWasRevoked: Virgil Card was revoked
Declaration
Swift
@objc(VSSCardManagerError) public enum CardManagerError : Int, LocalizedError
-
Declaration
Swift
@objc(VSSCardClientError) public enum CardClientError : Int, LocalizedError
-
Declares error types and codes
- invalidBase64String: Passed string is not correct base64 encoded string
- duplicateSignature: Signature with same signer already exists
Declaration
Swift
@objc(VSSRawSignedModelError) public enum RawSignedModelError : Int, LocalizedError
-
Declares error types and codes
- duplicateSigner: tried to add verifier credentials from same signer
Declaration
Swift
@objc(VSSWhitelistError) public enum WhitelistError : Int, LocalizedError
-
Declares error types and codes
- incorrectNumberOfJwtComponents: Number of JWT components doesn’t equal 3
- utf8StrIsInvalid: Invalid UTF8 string to sign
Declaration
Swift
@objc(VSSJwtError) public enum JwtError : Int, LocalizedError
-
Declaration
Swift
@objc(VSSJwtBodyContentError) public enum JwtBodyContentError : Int, LocalizedError
-
Declaration
Swift
@objc(VSSJwtHeaderContentError) public enum JwtHeaderContentError : Int, LocalizedError
-
Declaration
Swift
@objc(VSSJwtSignatureContentError) public enum JwtSignatureContentError : Int, LocalizedError
-
Declares error codes for KeychainStorage. See KeychainStorageError
- utf8ConvertingError: Error while converting string to utf8 binary
- emptyKeychainResponse: Keychain response is nil
- wrongResponseType: Unexpected keychain response type
- errorParsingKeychainResponse: Error while deserializing keychain response
- invalidAppBundle: Bundle.main.bundleIdentifier is empty
- keychainError: Keychain returned error
- creatingAccessControlFailed: SecAccessControlCreateWithFlags returned error
Declaration
Swift
@objc(VSSKeychainStorageErrorCodes) public enum KeychainStorageErrorCodes : Int
-
Declares error types and codes for KeychainStorageWrapper
- errorConvertingKeychainEntry: Invalid Keychain entry
Declaration
Swift
@objc(VSSSandboxedKeychainStorageError) public enum SandboxedKeychainStorageError : Int, LocalizedError
-
Declares client error types and codes
- constructingUrl: constructing url of endpoint failed
- invalidPreviousHashHeader: error whilte extracting previousHash from response header
- emptyIdentities: identities array is empty
- invalidOptions: internal invalid options error
Declaration
Swift
@objc(VSSKeyknoxClientError) public enum KeyknoxClientError : Int, LocalizedError
-
Declares error types and codes for KeyknoxManager
- entryNotFound: Entry was not found
- entrySavingError: Error while saving entry
- entryAlreadyExists: Entry already exists
- cloudStorageOutOfSync: Sync this storage before any other operations
Declaration
Swift
@objc(VSSCloudKeyStorageError) public enum CloudKeyStorageError : Int, LocalizedError
-
Declares error types and codes for KeyknoxCrypto
- decryptionFailed: Decryption failed
- emptyPublicKeysList: Public keys list is empty
- emptyData: Trying to encrypt empty data
Declaration
Swift
@objc(VSSKeyknoxCryptoError) public enum KeyknoxCryptoError : Int, LocalizedError
-
Declares error types and codes for KeyknoxManager
- noPublicKeys: Public keys array is empty
- serverRespondedWithTamperedValue: Value pushed to Keyknox and returned from Keyknox doesn’t match
- dataIsEmpty: Data is empty
Declaration
Swift
@objc(VSSKeyknoxManagerError) public enum KeyknoxManagerError : Int, LocalizedError
-
Declares error types and codes for SyncKeyStorage
- keychainEntryNotFoundWhileUpdating: KeychainEntry not found while updating
- cloudEntryNotFoundWhileUpdating: CloudEntry not found while updating
- cloudEntryNotFoundWhileDeleting: CloudEntry not found while deleting
- keychainEntryNotFoundWhileComparing: KeychainEntry not found while comparing
- keychainEntryAlreadyExistsWhileStoring: KeychainEntry already exists while storing
- cloudEntryAlreadyExistsWhileStoring: CloudEntry already exists while storing
- invalidModificationDateInKeychainEntry: Invalid modificationDate in KeychainEntry
- invalidCreationDateInKeychainEntry: Invalid creationDate in KeychainEntry
- noMetaInKeychainEntry: No meta in keychainEntry
- invalidKeysInEntryMeta: Invalid keys in entry meta
- inconsistentStateError: Inconsistent state error
- entrySavingError: Error while saving entry
Declaration
Swift
@objc(VSSSyncKeyStorageError) public enum SyncKeyStorageError : Int, LocalizedError
-
Declaration
Swift
@objc(VSSSQLiteBindingError) public enum SQLiteBindingError : Int, LocalizedError
-
Aggregates common functions to use with JSONEncoder
See moreDeclaration
Swift
public enum DateUtils
-
Class used for logging
See moreDeclaration
Swift
public enum Log
-
Declaration
Swift
public enum MutexError : Error
-
Declares error types and codes
- errorAndResultMissing: Both Result and Error are missing in callback
Declaration
Swift
@objc(VSSCallbackOperationError) public enum CallbackOperationError : Int, LocalizedError
-
Declares error types and codes
- timeout: Timeout has fired
- resultIsMissing: Result variable is empty after execution
- missingDependencies: Dependend operation result not found
- dependencyFailed: Dependend operation has failed
- operationCancelled: Operation was cancelled
Declaration
Swift
@objc(VSSGenericOperationError) public enum GenericOperationError : Int, LocalizedError
-
Class that helps to create Operation instances for common cases
See moreDeclaration
Swift
public enum OperationUtils
-
Helper class to work with version
See moreDeclaration
Swift
public enum VersionUtils