blob: 70e6b042fd7ffa4c8d65de7b20f1283a401de192 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
* Copyright (c) 2010, Isode Limited, London, England.
* All rights reserved.
*/
/*
* Copyright (c) 2010, Remko Tronçon.
* All rights reserved.
*/
package com.isode.stroke.sasl;
import com.isode.stroke.base.ByteArray;
public class PLAINClientAuthenticator extends ClientAuthenticator {
public PLAINClientAuthenticator() {
super("PLAIN");
}
public ByteArray getResponse() {
return new ByteArray().append(getAuthorizationID()).append((byte)0).append(getAuthenticationID()).append((byte)0).append(getPassword());
}
public boolean setChallenge(ByteArray challenge) {
return true;
}
}
|