Asylo
enclave_server_credentials.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2017 Asylo authors
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef ASYLO_GRPC_AUTH_ENCLAVE_SERVER_CREDENTIALS_H_
20 #define ASYLO_GRPC_AUTH_ENCLAVE_SERVER_CREDENTIALS_H_
21 
22 #include <memory>
23 
24 #include "asylo/grpc/auth/core/enclave_credentials.h"
25 #include "asylo/grpc/auth/enclave_credentials_options.h"
26 #include "include/grpcpp/security/server_credentials.h"
27 
28 namespace asylo {
29 
30 /// Constructs a `grpc::ServerCredentials` object for use in an enclave system.
31 ///
32 /// The configuration `options` determines which assertions are presented by the
33 /// entity that wields the resulting credentials object. `options` must meet the
34 /// following criteria:
35 ///
36 /// * `options.self_assertions` must contain at least one assertion
37 /// description
38 /// * `options.accepted_peer_assertions` must contain at least one assertion
39 /// description
40 ///
41 /// \param options Options for configuring the credentials.
42 /// \return A gRPC server credentials object.
45 
46 } // namespace asylo
47 
48 #endif // ASYLO_GRPC_AUTH_ENCLAVE_SERVER_CREDENTIALS_H_
std::shared_ptr<::grpc::ServerCredentials > EnclaveServerCredentials(EnclaveCredentialsOptions options)
Constructs a grpc::ServerCredentials object for use in an enclave system.
ABSL_CONST_INIT const char kStatusMoveAssignmentMsg[]