Ejemplo n.º 1
0
 public KeyManagerHelper(ServerContext ctx, TPMContext tpmContext, int tpmSessionIdentifier, ICommandAuthorizationHelper commandAuthHelper)
 {
     _ctx = ctx;
     _tpmContext = tpmContext;
     _tpmSessionIdentifier = tpmSessionIdentifier;
     _commandAuthHelper = commandAuthHelper;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a ServerContext for the specified connection
 /// </summary>
 public static ServerContext CreateServerEndpointContext(FrontEndConnection connection, IConnectionsConfiguration connectionConfig,
     AccessControlList acl, IDictionary<string, TPMContext> tpmContexts)
 {
     PacketTransmitter packetTransmitter = new PacketTransmitter(connection);
     ServerContext ctx = new ServerContext(connection, packetTransmitter, connectionConfig, acl, tpmContexts);
     packetTransmitter.StartTransmitting();
     return ctx;
 }
Ejemplo n.º 3
0
 public CommandAuthorizationHelper(ServerContext ctx, int tpmSessionIdentifier, TPMContext tpmContext)
 {
     _ctx = ctx;
     _tpmSessionIdentifier = tpmSessionIdentifier;
     _tpmContext = tpmContext;
 }