public class CramMD5Mechanism extends AbstractMechanism
Mechanism.PRIORITY
EMPTY
Constructor and Description |
---|
CramMD5Mechanism() |
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,
Principal localPrincipal) |
compareTo, getPassword, getUsername, setPassword, setUsername, toString
public int getPriority()
public String getName()
public byte[] getInitialResponse()
Mechanism
public byte[] getChallengeResponse(byte[] challenge) throws SaslException
Mechanism
challenge
- the challenge that this Mechanism should response to.SaslException
- if an error occurs computing the response.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.