Class SASLAnonymous

java.lang.Object
org.jivesoftware.smack.sasl.SASLMechanism
org.jivesoftware.smack.sasl.core.SASLAnonymous
All Implemented Interfaces:
Comparable<SASLMechanism>

public class SASLAnonymous extends SASLMechanism
Implementation of the SASL ANONYMOUS mechanism.
  • Field Details

  • Constructor Details

    • SASLAnonymous

      public SASLAnonymous()
  • Method Details

    • getName

      public String getName()
      Description copied from class: SASLMechanism
      Returns the common name of the SASL mechanism. E.g.: PLAIN, DIGEST-MD5 or GSSAPI.
      Specified by:
      getName in class SASLMechanism
      Returns:
      the common name of the SASL mechanism.
    • getPriority

      public int getPriority()
      Description copied from class: SASLMechanism
      Get the priority of this SASL mechanism. Lower values mean higher priority.
      Specified by:
      getPriority in class SASLMechanism
      Returns:
      the priority of this SASL mechanism.
    • authenticateInternal

      protected void authenticateInternal(CallbackHandler cbh)
      Specified by:
      authenticateInternal in class SASLMechanism
    • getAuthenticationText

      protected byte[] getAuthenticationText()
      Description copied from class: SASLMechanism
      Should return the initial response of the SASL mechanism. The returned byte array will be send base64 encoded to the server. SASL mechanism are free to return null or an empty array here.
      Specified by:
      getAuthenticationText in class SASLMechanism
      Returns:
      the initial response or null
    • newInstance

      public SASLAnonymous newInstance()
      Specified by:
      newInstance in class SASLMechanism
    • checkIfSuccessfulOrThrow

      public void checkIfSuccessfulOrThrow()
      Specified by:
      checkIfSuccessfulOrThrow in class SASLMechanism
    • requiresPassword

      public boolean requiresPassword()
      Overrides:
      requiresPassword in class SASLMechanism