#include "remoting/protocol/negotiating_authenticator_base.h"
#include <algorithm>
#include <sstream>
#include <utility>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/strings/string_split.h"
#include "remoting/base/constants.h"
#include "remoting/base/rsa_key_pair.h"
#include "remoting/protocol/authenticator.h"
#include "remoting/protocol/channel_authenticator.h"
#include "remoting/protocol/credentials_type.h"
#include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
namespace remoting::protocol {
const jingle_xmpp::StaticQName
NegotiatingAuthenticatorBase::kMethodAttributeQName = …;
const jingle_xmpp::StaticQName
NegotiatingAuthenticatorBase::kSupportedMethodsAttributeQName = …;
const char NegotiatingAuthenticatorBase::kSupportedMethodsSeparator = …;
const jingle_xmpp::StaticQName NegotiatingAuthenticatorBase::kPairingInfoTag = …;
const jingle_xmpp::StaticQName
NegotiatingAuthenticatorBase::kClientIdAttribute = …;
NegotiatingAuthenticatorBase::NegotiatingAuthenticatorBase(
Authenticator::State initial_state)
: … { … }
NegotiatingAuthenticatorBase::~NegotiatingAuthenticatorBase() = default;
CredentialsType NegotiatingAuthenticatorBase::credentials_type() const { … }
const Authenticator& NegotiatingAuthenticatorBase::implementing_authenticator()
const { … }
Authenticator::State NegotiatingAuthenticatorBase::state() const { … }
bool NegotiatingAuthenticatorBase::started() const { … }
Authenticator::RejectionReason NegotiatingAuthenticatorBase::rejection_reason()
const { … }
void NegotiatingAuthenticatorBase::ProcessMessageInternal(
const jingle_xmpp::XmlElement* message,
base::OnceClosure resume_callback) { … }
void NegotiatingAuthenticatorBase::UpdateState(
base::OnceClosure resume_callback) { … }
std::unique_ptr<jingle_xmpp::XmlElement>
NegotiatingAuthenticatorBase::GetNextMessageInternal() { … }
void NegotiatingAuthenticatorBase::NotifyStateChangeAfterAccepted() { … }
void NegotiatingAuthenticatorBase::AddMethod(Method method) { … }
const std::string& NegotiatingAuthenticatorBase::GetAuthKey() const { … }
std::unique_ptr<ChannelAuthenticator>
NegotiatingAuthenticatorBase::CreateChannelAuthenticator() const { … }
}