TwitterRegistration Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. TwitterRegistration
- com.
Implements
public final class TwitterRegistration
implements JsonSerializable<TwitterRegistration>
The configuration settings of the app registration for the Twitter provider.
Constructor Summary
Constructor | Description |
---|---|
TwitterRegistration() |
Creates an instance of Twitter |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
consumerKey()
Get the consumer |
String |
consumerSecretSettingName()
Get the consumer |
static
Twitter |
fromJson(JsonReader jsonReader)
Reads an instance of Twitter |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Twitter |
withConsumerKey(String consumerKey)
Set the consumer |
Twitter |
withConsumerSecretSettingName(String consumerSecretSettingName)
Set the consumer |
Methods inherited from java.lang.Object
Constructor Details
TwitterRegistration
public TwitterRegistration()
Creates an instance of TwitterRegistration class.
Method Details
consumerKey
public String consumerKey()
Get the consumerKey property: The OAuth 1.0a consumer key of the Twitter application used for sign-in. This setting is required for enabling Twitter Sign-In. Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in.
Returns:
consumerSecretSettingName
public String consumerSecretSettingName()
Get the consumerSecretSettingName property: The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.
Returns:
fromJson
public static TwitterRegistration fromJson(JsonReader jsonReader)
Reads an instance of TwitterRegistration from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withConsumerKey
public TwitterRegistration withConsumerKey(String consumerKey)
Set the consumerKey property: The OAuth 1.0a consumer key of the Twitter application used for sign-in. This setting is required for enabling Twitter Sign-In. Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in.
Parameters:
Returns:
withConsumerSecretSettingName
public TwitterRegistration withConsumerSecretSettingName(String consumerSecretSettingName)
Set the consumerSecretSettingName property: The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.
Parameters:
Returns:
Applies to
Azure SDK for Java