FlutterEnrollmentService class
A service class for managing enrollment requests in a Flutter environment.
Constructors
- FlutterEnrollmentService()
- A service class for managing enrollment requests in a Flutter environment.
Properties
- atClient → AtClient
-
Instance of AtClient for the current atSign
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
progressStream
→ Stream<
ProgressEvent> -
Stream of progress events during enrollment operations
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
approve(
EnrollmentRequestDecision request, AtLookUp atLookUp) → Future< AtEnrollmentResponse> - Approve a pending enrollment request
-
awaitApproval(
AtEnrollmentResponse response) → Future< void> - Wait for a submitted enrollment request to be approved
-
deny(
EnrollmentRequestDecision request, AtLookUp atLookUp) → Future< AtEnrollmentResponse> - Deny a pending enrollment request
-
dispose(
) → Future< void> - Call this method when the service is no longer needed.
-
enroll(
EnrollmentRequest request, {bool waitForApproval = false}) → Future< AtEnrollmentResponse> - Submit an enrollment request to the secondary server
-
generateOtp(
{Duration optExpiry = _kDefaultExpiry}) → Future< Otp> - Get the OTP from the server.
-
getActiveSpp(
) → Future< SppData?> - Get the active SPP from the keychain.
-
getAllSpps(
) → Future< List< SppData> > - Get all active (non-expired) SPPs from the keychain.
-
getEnrollments(
{List< EnrollmentStatus> ? statusFilters}) → Stream<EnrollmentServerResponse> - Listen for enrollment requests received from the server
-
isManagerKey(
) → Future< bool> - Check if the current atSign has manager permissions.
-
list(
List< EnrollmentStatus> filters, AtLookUp atLookUp, {String? drx, String? arx}) → Future<List< EnrollmentServerResponse> > - List enrollments from the secondary server
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
revoke(
EnrollmentRequestDecision request, AtLookUp atLookUp) → Future< AtEnrollmentResponse> - Revoke an existing enrollment
-
setSpp(
{required String spp, Duration sppExpiry = _kDefaultExpiry}) → Future< Otp> - Set a semi-permanent passcode/OTP.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited