aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/net/connection_auth_context.cpp
blob: 5dd41b3b4d579164bc16c46cd0a4e6cf5644d80b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "connection_auth_context.h"

namespace vespalib::net {

ConnectionAuthContext::ConnectionAuthContext(tls::PeerCredentials peer_credentials,
                                             tls::CapabilitySet capabilities) noexcept
    : _peer_credentials(std::move(peer_credentials)),
      _capabilities(std::move(capabilities))
{
}

ConnectionAuthContext::ConnectionAuthContext(const ConnectionAuthContext&) = default;
ConnectionAuthContext& ConnectionAuthContext::operator=(const ConnectionAuthContext&) = default;
ConnectionAuthContext::ConnectionAuthContext(ConnectionAuthContext&&) noexcept = default;
ConnectionAuthContext& ConnectionAuthContext::operator=(ConnectionAuthContext&&) noexcept = default;

ConnectionAuthContext::~ConnectionAuthContext() = default;

}