public interface ProtonSaslMechanism extends Comparable<ProtonSaslMechanism>
| Modifier and Type | Interface and Description |
|---|---|
static class |
ProtonSaslMechanism.PRIORITY
Relative priority values used to arrange the found SASL mechanisms in a preferred order where the level of security
generally defines the preference.
|
| 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() |
String |
getPassword()
Returns the configured password value for this Mechanism.
|
int |
getPriority() |
String |
getUsername()
Returns the configured user name value for this Mechanism.
|
boolean |
isApplicable(String username,
String password)
Checks whether a given mechanism is suitable for use in light of the available credentials.
|
ProtonSaslMechanism |
setPassword(String username)
Sets the password value for this Mechanism.
|
ProtonSaslMechanism |
setUsername(String username)
Sets the user name value for this Mechanism.
|
compareToint getPriority()
String getName()
byte[] getInitialResponse()
throws SaslException
SaslException - if an error occurs computing the response.byte[] getChallengeResponse(byte[] challenge)
throws SaslException
challenge - the challenge that this Mechanism should response to.SaslException - if an error occurs computing the response.ProtonSaslMechanism setUsername(String username)
username - The user name given.String getUsername()
ProtonSaslMechanism setPassword(String username)
username - The user name given.String getPassword()
Copyright © 2016. All rights reserved.