Gcr.SecretExchange.new

function new(protocol: String): Gcr.SecretExchange {
    // Gjs wrapper for gcr_secret_exchange_new()
}
  

Create a new secret exchange object.

Specify a protocol of null to allow any protocol. This is especially relevant on the side of the exchange that does not call Gcr.SecretExchange.prototype.begin, that is the originator. Currently the only protocol supported is %GCR_SECRET_EXCHANGE_PROTOCOL_1.

protocol

the exchange protocol to use

Returns

A new Gcr.SecretExchange object