Class JDKSaslConfig.JDKSaslMechanism

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.security.sasl.SaslClient client  
    • Constructor Summary

      Constructors 
      Constructor Description
      JDKSaslMechanism​(javax.security.sasl.SaslClient client)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      The name of this mechanism (e.g.
      LongString handleChallenge​(LongString challenge, java.lang.String username, java.lang.String password)
      Handle one round of challenge-response
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • client

        private final javax.security.sasl.SaslClient client
    • Constructor Detail

      • JDKSaslMechanism

        public JDKSaslMechanism​(javax.security.sasl.SaslClient client)
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: SaslMechanism
        The name of this mechanism (e.g. PLAIN)
        Specified by:
        getName in interface SaslMechanism
        Returns:
        the name
      • handleChallenge

        public LongString handleChallenge​(LongString challenge,
                                          java.lang.String username,
                                          java.lang.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