Class CRDemoMechanism

  • All Implemented Interfaces:
    SaslMechanism

    public class CRDemoMechanism
    extends Object
    implements SaslMechanism
    Provides equivalent security to PLAIN but demos use of Connection.Secure(Ok) START-OK: Username SECURE: "Please tell me your password" SECURE-OK: Password
    • Constructor Detail

      • CRDemoMechanism

        public CRDemoMechanism()
    • Method Detail

      • handleChallenge

        public LongString handleChallenge​(LongString challenge,
                                          String username,
                                          String password)
        Description copied from interface: SaslMechanism
        Handle one round of challenge-response
        Specified by:
        handleChallenge in interface SaslMechanism
        Parameters:
        challenge - the challenge this round, or null on first round.
        username - name of user
        password - for username
        Returns:
        response