public class ProtonSaslPlainImpl extends ProtonSaslMechanismImpl
ProtonSaslMechanism.PRIORITY| Modifier and Type | Field and Description |
|---|---|
static String |
MECH_NAME |
EMPTY| Constructor and Description |
|---|
ProtonSaslPlainImpl() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getChallengeResponse(byte[] challenge)
Create a response based on a given challenge from the remote peer.
|
byte[] |
getInitialResponse()
Create an initial response based on selected mechanism.
|
String |
getName() |
int |
getPriority() |
boolean |
isApplicable(String username,
String password)
Checks whether a given mechanism is suitable for use in light of the available credentials.
|
compareTo, getPassword, getUsername, setPassword, setUsername, toStringpublic static final String MECH_NAME
public int getPriority()
public String getName()
public byte[] getInitialResponse()
ProtonSaslMechanismpublic byte[] getChallengeResponse(byte[] challenge)
ProtonSaslMechanismchallenge - the challenge that this Mechanism should response to.public boolean isApplicable(String username, String password)
ProtonSaslMechanismusername - the usernamepassword - the passwordCopyright © 2020. All rights reserved.