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) |
compareTo, getPassword, getUsername, setPassword, setUsername, toStringpublic 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)
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.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.