Package 

Class AppAuthorizationRequestMap


  • 
    public final class AppAuthorizationRequestMap
    
                        

    A 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 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