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
ConstructorDescriptionDeprecated.use the full constructor insteadTwilioFactorProvider(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
Modifier and TypeMethodDescriptionGetter for the Twilio auth token.getFrom()
Getter for the Twilio From number.Getter for the Twilio Messaging Service SID.getSID()
Getter for the Twilio SIDvoid
setAuthToken(String authToken)
Deprecated.use the constructor insteadvoid
Deprecated.use the constructor insteadvoid
setMessagingServiceSID(String messagingServiceSID)
Deprecated.use the constructor insteadvoid
Deprecated.use the constructor instead
-
Constructor Details
-
TwilioFactorProvider
Deprecated.use the full constructor insteadCreates an empty Twilio settings object -
TwilioFactorProvider
public TwilioFactorProvider(String from, String messagingServiceSID, String authToken, String sid) throws IllegalArgumentExceptionCreates 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.
-
setFrom
Deprecated.use the constructor insteadSetter for the Twilio From number.- Parameters:
from
- the from number to set.- Throws:
IllegalArgumentException
- when both `from` and `messagingServiceSID` are set
-
getMessagingServiceSID
Getter for the Twilio Messaging Service SID.- Returns:
- the messaging service SID.
-
setMessagingServiceSID
@Deprecated public void setMessagingServiceSID(String messagingServiceSID) throws IllegalArgumentExceptionDeprecated.use the constructor insteadSetter for the Twilio Messaging Service SID.- Parameters:
messagingServiceSID
- the messaging service SID.- Throws:
IllegalArgumentException
- when both `from` and `messagingServiceSID` are set
-
getAuthToken
Getter for the Twilio auth token.- Returns:
- the Twilio auth token.
-
setAuthToken
Deprecated.use the constructor insteadSetter for the Twilio auth token.- Parameters:
authToken
- the Twilio auth token to set.
-
getSID
Getter for the Twilio SID- Returns:
- the Twilio SID.
-
setSID
Deprecated.use the constructor insteadSetter for the Twilio SID- Parameters:
SID
- the Twilio SID to set.
-