code: @Override
      public boolean validate(byte[] handshake) {
          if (validateScheme(handshake, 0)) {
              algorithm = 0;
              return true;
          }
          if (validateScheme(handshake, 1)) {
              algorithm = 1;
              return true;
          }
          log.error("Unable to validate server");
          return false;
      }
docs: Determines the validation scheme for given input.
  
  @param input handshake bytes from the server
  @return true if server used a supported validation scheme, false if unsupported