InitializationState
public enum InitializationState : Int, CaseIterable
The possible initialization state of the library.
-
State of the runtime prior to initialization.
This is the initial state of the runtime prior to calling
enableSecurity()
orenableSecurity(with:)
.Declaration
Swift
case initial
-
A new password is required.
The runtime has been initialized with application authentication enabled. To control access a new application password must be set by calling
setPassword(_:)
Declaration
Swift
case authenticationSetupRequired
-
A valid password must be entered.
The correct application password is required to enable access to the runtime’s programmatic interfaces and secure storage. Use
enterPassword(_:)
.Declaration
Swift
case authenticationRequired
-
The runtime requires user registration.
The instance of the library needs to be registered with BlackBerry by supplying an identity token belonging to the user. See
provideToken(_:)
.Declaration
Swift
case registration
-
The user’s identity token is being validated by BlackBerry Identity.
The token provided using
provideToken(_:)
is currently being validated by BlackBerry Identity.Declaration
Swift
case tokenValidation
-
The security library is active and detecting threats.
The runtime is registered with BlackBerry and able to retrieve the latest threat models.
Declaration
Swift
case active
-
The users Identity Token has expired.
A valid token is required to return the library to an
active
state.Declaration
Swift
case tokenExpired
-
The security library is being deactivated.
Declaration
Swift
case deactivating
-
The library is in an error state.
Declaration
Swift
case error