Class XOauth2Mechanism

  • All Implemented Interfaces:
    Mechanism

    public class XOauth2Mechanism
    extends AbstractMechanism
    Implements the SASL XOAUTH2 authentication Mechanism . User name and Password values are sent without being encrypted.
    • Field Detail

      • XOAUTH2

        public static final Symbol XOAUTH2
        A singleton instance of the symbolic mechanism name.
    • Constructor Detail

      • XOauth2Mechanism

        public XOauth2Mechanism()
    • Method Detail

      • getName

        public Symbol getName()
        Returns:
        the well known name of this SASL mechanism.
      • isApplicable

        public boolean isApplicable​(SaslCredentialsProvider credentials)
        Description copied from interface: Mechanism
        Allows the Mechanism to determine if it is a valid choice based on the configured credentials at the time of selection.
        Parameters:
        credentials - the login credentials available at the time of mechanism selection.
        Returns:
        true if the mechanism can be used with the provided credentials