Class SASLMechanism

java.lang.Object
org.jivesoftware.smack.sasl.SASLMechanism
All Implemented Interfaces:
Comparable<SASLMechanism>
Direct Known Subclasses:
SASLAnonymous, SASLXOauth2Mechanism, ScramMechanism

public abstract class SASLMechanism extends Object implements Comparable<SASLMechanism>
Base class for SASL mechanisms. Subclasses will likely want to implement their own versions of these methods:
  • Field Details

    • CRAMMD5

      public static final String CRAMMD5
      See Also:
    • DIGESTMD5

      public static final String DIGESTMD5
      See Also:
    • EXTERNAL

      public static final String EXTERNAL
      See Also:
    • GSSAPI

      public static final String GSSAPI
      See Also:
    • PLAIN

      public static final String PLAIN
      See Also:
    • connection

      protected XMPPConnection connection
    • connectionConfiguration

      protected ConnectionConfiguration connectionConfiguration
    • authenticationId

      protected String authenticationId
      Then authentication identity (authcid). RFC 6120 § 6.3.7 informs us that some SASL mechanisms use this as a "simple user name". But the exact form is a matter of the mechanism and that it does not necessarily map to an localpart. But it usually is the localpart of the client JID, although sometimes other formats are used (e.g. the full JID).

      Not to be confused with the authzid (see RFC 6120 § 6.3.8).

    • authorizationId

      protected org.jxmpp.jid.EntityBareJid authorizationId
      The authorization identifier (authzid). This is always a bare Jid, but can be null.
    • serviceName

      protected org.jxmpp.jid.DomainBareJid serviceName
      The name of the XMPP service
    • password

      protected String password
      The users password
    • host

      protected String host
    • sslSession

      protected SSLSession sslSession
      The used SSL/TLS session (if any).
  • Constructor Details

    • SASLMechanism

      public SASLMechanism()
  • Method Details