Package com.twilio.jwt.accesstoken
Class VideoGrant
- java.lang.Object
-
- com.twilio.jwt.accesstoken.VideoGrant
-
- All Implemented Interfaces:
Grant
public class VideoGrant extends Object implements Grant
Grant used to access Twilio Video.For more information see: https://www.twilio.com/docs/api/rest/access-tokens
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classVideoGrant.Payload
-
Constructor Summary
Constructors Constructor Description VideoGrant()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGrantKey()The key for the grant.ObjectgetPayload()The payload for this grant.StringgetRoom()Get the room configured in this grant.VideoGrantsetRoom(String roomSidOrName)Set the room to grant access to
-
-
-
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: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.
-
-