Class VideoGrant

    • Constructor Detail

      • VideoGrant

        public VideoGrant()
    • Method Detail

      • getRoom

        public String getRoom()
        Get the room configured in this grant.
        Returns:
        The room name or sid or null if not set.
      • setRoom

        public VideoGrant setRoom​(String roomSidOrName)
        Set the room to grant access to
        Parameters:
        roomSidOrName - a room sid or name
        Returns:
        updated VideoGrant instance
      • getGrantKey

        public String getGrantKey()
        Description copied from interface: Grant
        The key for the grant.
        Specified by:
        getGrantKey in interface Grant
        Returns:
        The key for the grant.
      • getPayload

        public Object getPayload()
        Description copied from interface: Grant
        The payload for this grant.

        The payload allows us to decouple the user API from how the grant is structured.

        Specified by:
        getPayload in interface Grant
        Returns:
        The payload for this grant.