Package com.twilio.jwt.accesstoken
Class ChatGrant
- java.lang.Object
-
- com.twilio.jwt.accesstoken.ChatGrant
-
- All Implemented Interfaces:
Grant
public class ChatGrant extends Object implements Grant
Grant used to access Twilio Chat.For more information see: https://www.twilio.com/docs/api/rest/access-tokens
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ChatGrant.Payload
-
Constructor Summary
Constructors Constructor Description ChatGrant()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDeploymentRoleSid()
String
getEndpointId()
String
getGrantKey()
The key for the grant.Object
getPayload()
The payload for this grant.String
getPushCredentialSid()
String
getServiceSid()
ChatGrant
setDeploymentRoleSid(String deploymentRoleSid)
ChatGrant
setEndpointId(String endpointId)
ChatGrant
setPushCredentialSid(String pushCredentialSid)
ChatGrant
setServiceSid(String serviceSid)
-
-
-
Method Detail
-
getServiceSid
public String getServiceSid()
-
getPushCredentialSid
public String getPushCredentialSid()
-
getDeploymentRoleSid
public String getDeploymentRoleSid()
-
getEndpointId
public String getEndpointId()
-
getGrantKey
public String getGrantKey()
Description copied from interface:Grant
The key for the grant.- Specified by:
getGrantKey
in interfaceGrant
- 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 interfaceGrant
- Returns:
- The payload for this grant.
-
-