AtEnrollment class abstract
An abstract class for submitting and managing the enrollment requests.
Constructors
- AtEnrollment.create()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
progressStream
→ Stream<
ProgressEvent> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
approve(
EnrollmentRequestDecision enrollmentRequestDecision, AtLookUp atLookUp) → Future< AtEnrollmentResponse> - Approves an enrollment request.
-
deny(
EnrollmentRequestDecision enrollmentRequestDecision, AtLookUp atLookUp) → Future< AtEnrollmentResponse> - Denies an enrollment request.
-
generateOtp(
AtLookUp atLookUp, {Duration expiry = const Duration(minutes: 5)}) → Future< Otp> - Generates a one-time passcode from the server.
-
list(
List< EnrollmentStatus> ? statusFilters, AtLookUp atLookUp, {String? arx, String? drx}) → Future<List< EnrollmentServerResponse> > - Lists all enrollments.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
revoke(
EnrollmentRequestDecision enrollmentRequestDecision, AtLookUp atLookUp) → Future< AtEnrollmentResponse> - Revokes an approved enrollment, closing any active connections and making it inactive for future use.
-
setSpp(
String spp, AtLookUp atLookUp, {Duration expiry = const Duration(minutes: 5)}) → Future< Otp> - Sets a semi-permanent passcode on the server.
-
submit(
EnrollmentRequest enrollmentRequest, AtLookUp atLookUp) → Future< AtEnrollmentResponse> - Submits an enrollment request.
-
toString(
) → String -
A string representation of this object.
inherited
-
waitForApproval(
AtEnrollmentResponse enrollmentResponse, {bool logProgress = false, int maxRetries = 48, Duration retryInterval = const Duration(minutes: 1)}) → Future< void> -
Awaits for approval/deny of an enrollment request at regular intervals.
The polling continues until a final status is received or the maximum number of retries is reached.
The
logProgressparameter, when set to true, enables logging of the progress during the polling process. ThemaxRetriesparameter specifies the maximum number of polling attempts before giving up. TheretryIntervalparameter defines the duration to wait between each polling attempt.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited