Class TwitterRegistration
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.models.TwitterRegistration
-
public final class TwitterRegistration extends Object
The configuration settings of the app registration for the Twitter provider.
-
-
Constructor Summary
Constructors Constructor Description TwitterRegistration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
consumerKey()
Get the consumerKey property: The OAuth 1.0a consumer key of the Twitter application used for sign-in.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.void
validate()
Validates the instance.TwitterRegistration
withConsumerKey(String consumerKey)
Set the consumerKey property: The OAuth 1.0a consumer key of the Twitter application used for sign-in.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.
-
-
-
Method Detail
-
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:
- the consumerKey value.
-
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:
consumerKey
- the consumerKey value to set.- Returns:
- the TwitterRegistration object itself.
-
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:
- the consumerSecretSettingName value.
-
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:
consumerSecretSettingName
- the consumerSecretSettingName value to set.- Returns:
- the TwitterRegistration object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-