| Constructor and Description |
|---|
TokenCreator()
Construct a new TokenCreator.
|
TokenCreator(String pathAccountSid)
Construct a new TokenCreator.
|
| Modifier and Type | Method and Description |
|---|---|
Token |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
TokenCreator |
setTtl(Integer ttl)
The duration in seconds for which the generated credentials are valid.
|
create, createAsync, createAsyncpublic TokenCreator()
public TokenCreator(String pathAccountSid)
pathAccountSid - The account_sidpublic TokenCreator setTtl(Integer ttl)
ttl - The duration in seconds the credentials are validpublic Token create(TwilioRestClient client)
Copyright © 2016 Twilio, Inc. All Rights Reserved.