Class ScramSHA256Mechanism

  • All Implemented Interfaces:
    Mechanism

    public class ScramSHA256Mechanism
    extends AbstractMechanism
    Implements the SASL Scram SHA 256 authentication Mechanism.
    • Constructor Detail

      • ScramSHA256Mechanism

        public ScramSHA256Mechanism()
        Creates an instance of the ScramSHA256Mechanism with a generated client Nonce.
    • Method Detail

      • getName

        public Symbol getName()
        Returns:
        the well known name of this SASL mechanism.
      • isApplicable

        public boolean isApplicable​(SaslCredentialsProvider credentials)
        Description copied from interface: Mechanism
        Allows the Mechanism to determine if it is a valid choice based on the configured credentials at the time of selection.
        Parameters:
        credentials - the login credentials available at the time of mechanism selection.
        Returns:
        true if the mechanism can be used with the provided credentials
      • verifyCompletion

        public void verifyCompletion()
                              throws SaslException
        Description copied from interface: Mechanism
        Verifies that the SASL exchange has completed successfully. This is an opportunity for the mechanism to ensure that all mandatory steps have been completed successfully and to cleanup and resources that are held by this Mechanism.
        Specified by:
        verifyCompletion in interface Mechanism
        Overrides:
        verifyCompletion in class AbstractMechanism
        Throws:
        SaslException - if the outcome of the SASL exchange is not valid for this Mechanism