Class Challenge

  • All Implemented Interfaces:
    StreamElement

    public final class Challenge
    extends Object
    implements StreamElement
    The implementation of the <challenge/> element, which is sent during SASL negotiation.

    6.4.3. Challenge-Response Sequence

    If necessary, the receiving entity challenges the initiating entity by sending a <challenge/> element qualified by the 'urn:ietf:params:xml:ns:xmpp-sasl' namespace; this element MAY contain XML character data (which MUST be generated in accordance with the definition of the SASL mechanism chosen by the initiating entity).

    This class is immutable.

    See Also:
    Response
    • Constructor Detail

      • Challenge

        public Challenge​(byte[] value)
        Creates the challenge.
        Parameters:
        value - The challenge data.
    • Method Detail

      • getValue

        public final byte[] getValue()
        Gets the value, i.e. the challenge.
        Returns:
        The challenge.