Skip to content

Commit 75e836c

Browse files
committed
Keep, but deprecate old constructor
Keeping old constructor to maintain compatibility with existing clients.
1 parent e5977b5 commit 75e836c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/twilio/sdk/TwilioUtils.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ public TwilioUtils(String authToken){
4747
this.authToken = authToken;
4848
}
4949

50+
@Deprecated
51+
public TwilioUtils(String authToken, String accountSid){
52+
this.authToken = authToken;
53+
}
54+
5055
public boolean validateRequest(String expectedSignature, String url, Map<String,String> params){
5156

5257
SecretKeySpec signingKey = new SecretKeySpec(this.authToken.getBytes(), "HmacSHA1");

0 commit comments

Comments
 (0)