Class ScramSaslClient.ServerFinalMessage

  • Enclosing class:
    ScramSaslClient

    static class ScramSaslClient.ServerFinalMessage
    extends Object
    Verifies the final server message.
    • Field Detail

      • SERVER_KEY_INIT

        private static final byte[] SERVER_KEY_INIT
        Bytes for the server key hmac.
      • message

        private final String message
        Server SASL credentials.
      • verified

        private final boolean verified
        Whether the server message was successfully verified.
    • Constructor Detail

      • ServerFinalMessage

        ServerFinalMessage​(Mechanism mech,
                           ScramSaslClient.ClientFinalMessage clientFinalMessage,
                           BindResponse result)
        Creates a new server final message.
        Parameters:
        mech - scram mechanism
        clientFinalMessage - final message sent to the server
        result - response to the final message
    • Method Detail

      • isVerified

        public boolean isVerified()
        Returns whether the server final message was successfully verified.
        Returns:
        whether the server message was verified.