Package com.twilio.jwt.accesstoken
Class SyncGrant
- java.lang.Object
-
- com.twilio.jwt.accesstoken.SyncGrant
-
- All Implemented Interfaces:
Grant
public class SyncGrant extends Object implements Grant
Grant used to access Twilio Sync.For more information see: https://www.twilio.com/docs/api/rest/access-tokens
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSyncGrant.Payload
-
Constructor Summary
Constructors Constructor Description SyncGrant()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEndpointId()StringgetGrantKey()The key for the grant.ObjectgetPayload()The payload for this grant.StringgetServiceSid()SyncGrantsetEndpointId(String endpointId)SyncGrantsetServiceSid(String serviceSid)
-
-
-
Method Detail
-
getServiceSid
public String getServiceSid()
-
getEndpointId
public String getEndpointId()
-
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.
-
-