Class SaslExternal

All Implemented Interfaces:
Comparable<S2SProcessor>, S2SProcessor, StatisticsProviderIfc

@Bean(name="sasl-external", parent=S2SConnectionManager.class, active=true) public class SaslExternal extends AuthenticationProcessor
  • Field Details

    • FEATURES_SASL_PATH

      protected static final String[] FEATURES_SASL_PATH
  • Constructor Details

    • SaslExternal

      public SaslExternal()
  • Method Details

    • getMethodName

      public String getMethodName()
    • setSkipForDomains

      public void setSkipForDomains(String[] skipForDomains)
    • streamFeatures

      public void streamFeatures(S2SIOService serv, List<tigase.xml.Element> results)
      Specified by:
      streamFeatures in interface S2SProcessor
      Overrides:
      streamFeatures in class S2SAbstractProcessor
    • order

      public int order()
      Description copied from interface: S2SProcessor
      Returns order of processor which is used to set order in which processors will be processing packet
    • restartAuth

      public void restartAuth(Packet p, S2SIOService serv, Queue<Packet> results)
    • canHandle

      public boolean canHandle(Packet p, S2SIOService serv, Queue<Packet> results)
    • getStatistics

      public void getStatistics(String compName, StatisticsList list)
      Specified by:
      getStatistics in interface StatisticsProviderIfc
      Overrides:
      getStatistics in class S2SAbstractProcessor
    • process

      public boolean process(Packet p, S2SIOService serv, Queue<Packet> results)
      Specified by:
      process in interface S2SProcessor
      Overrides:
      process in class S2SAbstractProcessor
    • shouldSkipUndelivered

      public boolean shouldSkipUndelivered(Packet packet)
      Description copied from interface: S2SProcessor
      Method determines whether not delivered packet (due to closed connection) should be skipped and not added for re-delivery. We should not re-add certain packets such as stream features or SASL as those are related to particular connection and if it got broken then there's no point in trying to re-deliver them.
      Parameters:
      packet - which was not delivered and is to be re-delivered
      Returns:
      true if the packet should be skipped/ignored or false if it is to be re-delivered.