EnclaveAuthContext()=default
virtual StatusOr< const EnclaveIdentity * > FindEnclaveIdentity(const EnclaveIdentityDescription &description) const
Finds and returns a peer identity matching description, if one exists.
virtual ~EnclaveAuthContext()=default
virtual RecordProtocol GetRecordProtocol() const
Gets the secure transport record-protocol used for securing frames over the connection.
Encapsulates the authentication properties of an EKEP-based gRPC connection.
Definition: enclave_auth_context.h:40
static StatusOr< EnclaveAuthContext > CreateFromAuthContext(const ::grpc::AuthContext &auth_context)
Creates an EnclaveAuthContext from the authentication properties in auth_context. ...
virtual StatusOr< bool > EvaluateAcl(const EnclaveIdentityExpectation &expectation, std::string *explanation) const
Evaluates whether any of the peer's identities match expectation.
virtual bool HasEnclaveIdentity(const EnclaveIdentityDescription &description) const
Indicates whether the authenticated peer has an identity matching description.
static StatusOr< EnclaveAuthContext > CreateFromServerContext(const ::grpc::ServerContext &server_context)
Constructs an EnclaveAuthContext using the authentication properties from server_context.
virtual StatusOr< bool > EvaluateAcl(const EnclaveIdentityExpectation &expectation) const
Evaluates whether any of the peer's identities match expectation.