public class ScramSha1SaslServer extends Object implements SaslServer
| Modifier and Type | Field and Description |
|---|---|
static SystemProperty<Integer> |
ITERATION_COUNT |
| Constructor and Description |
|---|
ScramSha1SaslServer() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes of any system resources or security-sensitive information
the SaslServer might be using.
|
byte[] |
evaluateResponse(byte[] response)
Evaluates the response data and generates a challenge.
|
String |
getAuthorizationID()
Reports the authorization ID in effect for the client of this
session.
|
String |
getMechanismName()
Returns the IANA-registered mechanism name of this SASL server.
|
Object |
getNegotiatedProperty(String propName)
Retrieves the negotiated property.
|
boolean |
isComplete()
Determines whether the authentication exchange has completed.
|
byte[] |
unwrap(byte[] incoming,
int offset,
int len)
Unwraps a byte array received from the client.
|
byte[] |
wrap(byte[] outgoing,
int offset,
int len)
Wraps a byte array to be sent to the client.
|
public static final SystemProperty<Integer> ITERATION_COUNT
public String getMechanismName()
getMechanismName in interface SaslServerpublic byte[] evaluateResponse(byte[] response)
throws SaslException
isComplete() should be called
after each call to evaluateResponse(),to determine if any further
response is needed from the client.evaluateResponse in interface SaslServerresponse - The non-null (but possibly empty) response sent
by the client.SaslException - If an error occurred while processing
the response or generating a challenge.public boolean isComplete()
evaluateResponse() to determine whether the
authentication has completed successfully or should be continued.isComplete in interface SaslServerpublic String getAuthorizationID()
getAuthorizationID in interface SaslServerIllegalStateException - if this authentication session has not completedpublic byte[] unwrap(byte[] incoming,
int offset,
int len)
throws SaslException
unwrap in interface SaslServerSaslException - if attempted to use this method.public byte[] wrap(byte[] outgoing,
int offset,
int len)
throws SaslException
wrap in interface SaslServerSaslException - if attempted to use this method.public Object getNegotiatedProperty(String propName)
isComplete() returns true); otherwise, an
IllegalStateException is thrown.getNegotiatedProperty in interface SaslServerpropName - the propertyIllegalStateException - if this authentication exchange has not completedpublic void dispose()
throws SaslException
dispose in interface SaslServerSaslException - If a problem was encountered while disposing
the resources.Copyright © 2003–2019 Ignite Realtime. All rights reserved.