1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-09 10:19:41 +02:00

Make SASLMechanism.getAuthenticationText() return byte[]

every SASL Mechanism is designed as a byte array based protocol. XMPP
adds the constraint that the challenges and responses are send base64
encoded. It's therefore better API design to let getAuthenticationText()
return byte[] instead of String.
This commit is contained in:
Florian Schmaus 2014-08-11 21:39:09 +02:00
parent c5b7f14527
commit f37682d980
5 changed files with 32 additions and 14 deletions

View file

@ -62,7 +62,7 @@ public class SASLDigestMD5Mechanism extends SASLMechanism {
}
@Override
protected String getAuthenticationText() throws SmackException {
protected byte[] getAuthenticationText() throws SmackException {
// DIGEST-MD5 has no initial response, return null
return null;
}