public class ParticipantTokenCredentials
extends java.lang.Object
implements java.io.Serializable
The credentials used by the participant.
| Constructor and Description |
|---|
ParticipantTokenCredentials() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getExpiry()
The expiration of the token.
|
java.lang.String |
getParticipantToken()
The token used by the chat participant to call CreateParticipantConnection.
|
int |
hashCode() |
void |
setExpiry(java.lang.String expiry)
The expiration of the token.
|
void |
setParticipantToken(java.lang.String participantToken)
The token used by the chat participant to call CreateParticipantConnection.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ParticipantTokenCredentials |
withExpiry(java.lang.String expiry)
The expiration of the token.
|
ParticipantTokenCredentials |
withParticipantToken(java.lang.String participantToken)
The token used by the chat participant to call CreateParticipantConnection.
|
public java.lang.String getParticipantToken()
The token used by the chat participant to call CreateParticipantConnection. The participant token is valid for the lifetime of a chat participant.
Constraints:
Length: 1 - 1000
The token used by the chat participant to call CreateParticipantConnection. The participant token is valid for the lifetime of a chat participant.
public void setParticipantToken(java.lang.String participantToken)
The token used by the chat participant to call CreateParticipantConnection. The participant token is valid for the lifetime of a chat participant.
Constraints:
Length: 1 - 1000
participantToken - The token used by the chat participant to call CreateParticipantConnection. The participant token is valid for the lifetime of a chat participant.
public ParticipantTokenCredentials withParticipantToken(java.lang.String participantToken)
The token used by the chat participant to call CreateParticipantConnection. The participant token is valid for the lifetime of a chat participant.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1000
participantToken - The token used by the chat participant to call CreateParticipantConnection. The participant token is valid for the lifetime of a chat participant.
public java.lang.String getExpiry()
The expiration of the token. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
The expiration of the token. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
public void setExpiry(java.lang.String expiry)
The expiration of the token. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
expiry - The expiration of the token. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
public ParticipantTokenCredentials withExpiry(java.lang.String expiry)
The expiration of the token. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
Returns a reference to this object so that method calls can be chained together.
expiry - The expiration of the token. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object