public class CredentialCreator extends Creator<Credential>
Constructor and Description |
---|
CredentialCreator(String friendlyName,
Credential.PushService type)
Construct a new CredentialCreator.
|
Modifier and Type | Method and Description |
---|---|
Credential |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
CredentialCreator |
setApiKey(String apiKey)
The api_key.
|
CredentialCreator |
setCertificate(String certificate)
The certificate.
|
CredentialCreator |
setPrivateKey(String privateKey)
The private_key.
|
CredentialCreator |
setSandbox(Boolean sandbox)
The sandbox.
|
public CredentialCreator(String friendlyName, Credential.PushService type)
friendlyName
- The friendly_nametype
- The typepublic CredentialCreator setCertificate(String certificate)
certificate
- The certificatepublic CredentialCreator setPrivateKey(String privateKey)
privateKey
- The private_keypublic CredentialCreator setSandbox(Boolean sandbox)
sandbox
- The sandboxpublic CredentialCreator setApiKey(String apiKey)
apiKey
- The api_keypublic Credential execute(TwilioRestClient client)
execute
in class Creator<Credential>
client
- TwilioRestClient with which to make the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.