Package com.auth0.json.mgmt.guardian
Class TwilioFactorProvider
java.lang.Object
com.auth0.json.mgmt.guardian.TwilioFactorProvider
Class that represents a Guardian's SMS Factor Provider for Twilio.
Related to the
GuardianEntity entity.-
Constructor Summary
ConstructorsConstructorDescriptionTwilioFactorProvider(String from, String messagingServiceSID, String authToken, String sid) Creates a Twilio settings object You must only specify either a non-null `from` or `messagingServiceSID`, but not both. -
Method Summary
-
Constructor Details
-
TwilioFactorProvider
public TwilioFactorProvider(String from, String messagingServiceSID, String authToken, String sid) throws IllegalArgumentException Creates a Twilio settings object You must only specify either a non-null `from` or `messagingServiceSID`, but not both.- Parameters:
from- the Twilio From number.messagingServiceSID- the Twilio Messaging Service SID.authToken- the Twilio auth token.sid- the Twilio SID.- Throws:
IllegalArgumentException- when both `from` and `messagingServiceSID` are set
-
-
Method Details
-
getFrom
Getter for the Twilio From number.- Returns:
- the from number.
-
getMessagingServiceSID
Getter for the Twilio Messaging Service SID.- Returns:
- the messaging service SID.
-
getAuthToken
Getter for the Twilio auth token.- Returns:
- the Twilio auth token.
-
getSID
Getter for the Twilio SID- Returns:
- the Twilio SID.
-