public class ScramSession.ClientFinalProcessor extends Object
ScramSession.ServerFirstProcessor.clientFinalProcessor(String)
or ScramSession.ServerFirstProcessor.clientFinalProcessor(byte[], byte[])
.Modifier and Type | Method | Description |
---|---|---|
String |
clientFinalMessage() |
Generates the SCRAM representation of the client-final-message.
|
String |
clientFinalMessage(byte[] cbindData) |
Generates the SCRAM representation of the client-final-message, including the given channel-binding data.
|
void |
receiveServerFinalMessage(String serverFinalMessage) |
Receive and process the server-final-message.
|
public String clientFinalMessage(byte[] cbindData) throws IllegalArgumentException
cbindData
- The bytes of the channel-binding dataIllegalArgumentException
- If the channel binding data is nullpublic String clientFinalMessage()
public void receiveServerFinalMessage(String serverFinalMessage) throws com.ongres.scram.common.exception.ScramParseException, com.ongres.scram.common.exception.ScramServerErrorException, com.ongres.scram.common.exception.ScramInvalidServerSignatureException, IllegalArgumentException
serverFinalMessage
- The received server-final-messagecom.ongres.scram.common.exception.ScramParseException
- If the message is not a valid server-final-messagecom.ongres.scram.common.exception.ScramServerErrorException
- If the server-final-message contained an errorIllegalArgumentException
- If the message is null or emptycom.ongres.scram.common.exception.ScramInvalidServerSignatureException
Copyright © 2017–2018. All rights reserved.