-
public final class AppAuthorizationRequestMapA map of IDs to AppAuthorizationRequests and their associated notification IDs.
The "approve" intent must include the ID as extra data "requestId", to indicate which Android package + Holochain app pair should be approved.
-
-
Constructor Summary
Constructors Constructor Description AppAuthorizationRequestMap(Integer initialNotificationId)
-
Method Summary
Modifier and Type Method Description final PutResponseput(AppAuthorizationRequest request)Inserts a request into the map if not already included. final AppAuthorizationRequestNotificationpop(String uuid)Gets and removes a request from the map by its UUID. -
-
Constructor Detail
-
AppAuthorizationRequestMap
AppAuthorizationRequestMap(Integer initialNotificationId)
- Parameters:
initialNotificationId- The starting notification ID to use
-
-
Method Detail
-
put
final PutResponse put(AppAuthorizationRequest request)
Inserts a request into the map if not already included.
If the request is already in the map, returns the existing entry's information. Otherwise, creates a new entry with a unique UUID and notification ID.
- Parameters:
request- The authorization request to add
-
pop
final AppAuthorizationRequestNotification pop(String uuid)
Gets and removes a request from the map by its UUID.
- Parameters:
uuid- The unique identifier of the request to retrieve and remove
-
-
-
-