public interface Mechanism extends Comparable<Mechanism>
Modifier and Type | Interface and Description |
---|---|
static class |
Mechanism.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,
Principal localPrincipal) |
void |
setPassword(String username)
Sets the password value for this Mechanism.
|
void |
setUsername(String username)
Sets the user name value for this Mechanism.
|
compareTo
int 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.void setUsername(String username)
username
- The user name given.String getUsername()
void setPassword(String username)
username
- The user name given.String getPassword()
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.