Package com.twilio.jwt.accesstoken
Class PlaybackGrant
- java.lang.Object
-
- com.twilio.jwt.accesstoken.PlaybackGrant
-
- All Implemented Interfaces:
Grant
public class PlaybackGrant extends Object implements Grant
Grant used to access Twilio Live.For more information see: https://www.twilio.com/docs/api/rest/access-tokens
-
-
Constructor Summary
Constructors Constructor Description PlaybackGrant()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getGrant()Get the grant payload configured in this grant.StringgetGrantKey()The key for the grant.ObjectgetPayload()The payload for this grant.PlaybackGrantsetGrant(Map<String,Object> grant)Set the playback grant
-
-
-
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:GrantThe key for the grant.- Specified by:
getGrantKeyin interfaceGrant- Returns:
- The key for the grant.
-
getPayload
public Object getPayload()
Description copied from interface:GrantThe payload for this grant.The payload allows us to decouple the user API from how the grant is structured.
- Specified by:
getPayloadin interfaceGrant- Returns:
- The payload for this grant.
-
-