public class SASLMessage extends Object implements ProfileMessage
A challenge or response exchanged between client and server during SASL authentication. This message encapsulates either a challenge or a response generated by the SASL mechanism during the SASL authentication exchanges taking place between the client and the server.
The challenges/responses (blobs) are generated by the SASL mechanism:
indication
as to why the operation failed.
At any time during the SASL handshake, if the client encounters a problem or
wants to abort the authentication exchange it can notify the server by
sending an indication as to why the operation
failed or is aborted.
The profile name in this profile message is built by concatenating the prefix "SASL/" with the SASL mechanism name provided by the IANA SASL registry.
Examples of SASL profile names are:
HandshakeBeginMessage,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
COMPLETE
This status code is used by a server to indicate that the authentication
exchange is complete and successful.
|
static int |
CONTINUE
This status code is used by either a client or server to indicate that
they require more interaction with the other peer in order to complete
the authentication exchange.
|
| Constructor and Description |
|---|
SASLMessage(String mechanism,
int status,
byte[] blob)
Constructs a new SASLMessage with the specified SASL mechanism,
status and generated blob.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBlob()
The blob generated by the SASL mechanism.
|
String |
getMechanism()
The SASL mechanism.
|
String |
getProfileName()
The profile name.
|
int |
getStatus()
The status of the current SASL authentication exchanges.
|
public static final int CONTINUE
public static final int COMPLETE
public SASLMessage(String mechanism, int status, byte[] blob)
mechanism - the SASL mechanismstatus - the status of the current SASL authentication
exchanges.blob - the blob generated by the SASL mechanism.public String getMechanism()
public int getStatus()
public byte[] getBlob()
public String getProfileName()
getProfileName in interface ProfileMessageCopyright © 2019 Terracotta, Inc.. All rights reserved.