public class Token extends Resource
Modifier and Type | Method and Description |
---|---|
static TokenCreator |
create(String accountSid)
Create a TokenCreator to execute create.
|
boolean |
equals(Object o) |
static Token |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Token object using the provided
ObjectMapper.
|
static Token |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Token object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The The unique sid that identifies this account.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date this resource was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date this resource was last updated.
|
List<IceServer> |
getIceServers()
Returns The An array representing the ephemeral credentials.
|
String |
getPassword()
Returns The The temporary password used for authenticating.
|
String |
getTtl()
Returns The The duration in seconds the credentials are valid.
|
String |
getUsername()
Returns The The temporary username that uniquely identifies a Token..
|
int |
hashCode() |
String |
toString() |
public static TokenCreator create(String accountSid)
accountSid
- The account_sidpublic static Token fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Token fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final List<IceServer> getIceServers()
public final String getPassword()
public final String getTtl()
public final String getUsername()
Copyright © 2011 Twilio, Inc. All Rights Reserved.