EnrollmentResult
public final class EnrollmentResult : ResultProtocol
Holds the result of the challenge enrollment.
-
The unique identifier of the enrollment. Default is
nil
.Declaration
Swift
public fileprivate(set) var identifier: String?
-
The type of the enrollment challenge. Default is
nil
.Declaration
Swift
public fileprivate(set) var type: String?
-
Additional enrollment details for a given enrollment type.
Declaration
Swift
public fileprivate(set) var additionalData: [String : Any]
-
The type of error.
Declaration
Swift
public fileprivate(set) var error: Error?
-
Construct an instance containing the exception.
Declaration
Swift
public init(error: Error)
Parameters
error
An instance of the
Error
representing the error.
-
Parses the object into an
EnrollmentResult
.Throws
IBMMobileKitError.serverError, IBMMobileKitError.unableToParseDataDeclaration
Swift
open static func parse(_ data: [String : Any]) throws -> EnrollmentResult
Parameters
data
The object to deserialize from.
Return Value
Deserialized
EnrollmentResult
.