Class PlaybackGrant

    • Constructor Detail

      • PlaybackGrant

        public PlaybackGrant()
    • Method Detail

      • getGrant

        public Map<String,​Object> getGrant()
        Get the grant payload configured in this grant.
        Returns:
        The grant payload or null if not set.
      • setGrant

        public PlaybackGrant setGrant​(Map<String,​Object> grant)
        Set the playback grant
        Parameters:
        grant - the playback grant
        Returns:
        updated PlaybackGrant 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.