public class ScramSHA256Mechanism extends AbstractMechanism
Mechanism.PRIORITY| Modifier and Type | Field and Description |
|---|---|
static String |
HMAC_SHA_256 |
static String |
SHA_256 |
EMPTY| Constructor and Description |
|---|
ScramSHA256Mechanism() |
| 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)
Allows the mechanism to determine if it can be used given the authentication
provided.
|
void |
verifyCompletion()
Verifies that the SASL exchange has completed successfully.
|
compareTo, getPassword, getUsername, init, isEnabledByDefault, setPassword, setUsername, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAdditionalFailureInformationpublic static final String SHA_256
public static final String HMAC_SHA_256
public int getPriority()
public String getName()
public boolean isApplicable(String username, String password, Principal localPrincipal)
Mechanismusername - The user name given to the client for authentication.password - The password given to the client for authentication.localPrincipal - The local Principal configured for the client for authentication.public byte[] getInitialResponse()
throws SaslException
MechanismSaslException - if an error occurs computing the response.public byte[] getChallengeResponse(byte[] challenge)
throws SaslException
Mechanismchallenge - the challenge that this Mechanism should response to.SaslException - if an error occurs computing the response.public void verifyCompletion()
throws SaslException
MechanismverifyCompletion in interface MechanismverifyCompletion in class AbstractMechanismSaslException - if the outcome of the SASL exchange is not valid for this MechanismCopyright © 2013–2019 The Apache Software Foundation. All rights reserved.