Class ScramClient.PreBuilder2

    • Method Detail

      • selectMechanismBasedOnServerAdvertised

        public ScramClient.Builder selectMechanismBasedOnServerAdvertised​(String... serverMechanisms)
        Inform the client of the SCRAM mechanisms supported by the server. Based on this list, the channel binding settings previously specified, and the relative strength of the supported SCRAM mechanisms for this client, the client will have enough data to select which mechanism to use for future interactions with the server. All names provided here need to be standar IANA Registry names for SCRAM mechanisms, or will be ignored.
        Parameters:
        serverMechanisms - One or more IANA-registered SCRAM mechanism names, as advertised by the server
        Throws:
        IllegalArgumentException - If no server mechanisms are provided
        See Also:
        SASL SCRAM Family Mechanisms