public interface ScramClientFunctionality
| Modifier and Type | Interface and Description |
|---|---|
static class |
ScramClientFunctionality.State
State of the authentication procedure
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkServerFinalMessage(String serverFinalMessage)
Checks if the server's final message is valid
|
ScramClientFunctionality.State |
getState()
Gets the state of the authentication procedure
|
boolean |
isEnded()
Checks if authentication is completed, either successfully or not.
|
boolean |
isSuccessful()
Checks if authentication is successful.
|
String |
prepareFinalMessage(String password,
String serverFirstMessage)
Prepares client's final message
|
String |
prepareFirstMessage(String username)
Prepares the first client message
|
String prepareFirstMessage(String username) throws ScramException
username - Username of the userScramException - if username contains prohibited charactersString prepareFinalMessage(String password, String serverFirstMessage) throws ScramException
password - User passwordserverFirstMessage - Server's first messageScramException - if there is an error processing server's message, i.e. it violates the
protocolvoid checkServerFinalMessage(String serverFinalMessage) throws ScramException
serverFinalMessage - Server's final messageScramException - if there is an error processing server's message, i.e. it violates the
protocolboolean isSuccessful()
isEnded()boolean isEnded()
getState() returns ENDED.ScramClientFunctionality.State getState()
Copyright © 2021 The Apache Software Foundation. All rights reserved.