C# Class IronPigeon.OwnEndpoint

显示文件 Open project: AArnott/IronPigeon Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
CreateAddressBookEntry ( CryptoSettings cryptoServices ) : AddressBookEntry

Creates a signed address book entry that describes the public information in this endpoint.

OpenAsync ( Stream stream ) : Task

Loads endpoint information including private data from the specified stream.

OwnEndpoint ( ) : System

Initializes a new instance of the OwnEndpoint class.

OwnEndpoint ( ICryptographicKey signingKey, ICryptographicKey encryptionKey, string inboxOwnerCode = null ) : System

Initializes a new instance of the OwnEndpoint class.

SaveAsync ( Stream target, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Saves the receiving endpoint including private data to the specified stream.

Method Details

CreateAddressBookEntry() public method

Creates a signed address book entry that describes the public information in this endpoint.
public CreateAddressBookEntry ( CryptoSettings cryptoServices ) : AddressBookEntry
cryptoServices CryptoSettings The crypto services to use for signing the address book entry.
return AddressBookEntry

OpenAsync() public static method

Loads endpoint information including private data from the specified stream.
public static OpenAsync ( Stream stream ) : Task
stream Stream A stream, previously serialized to using .
return Task

OwnEndpoint() public method

Initializes a new instance of the OwnEndpoint class.
public OwnEndpoint ( ) : System
return System

OwnEndpoint() public method

Initializes a new instance of the OwnEndpoint class.
public OwnEndpoint ( ICryptographicKey signingKey, ICryptographicKey encryptionKey, string inboxOwnerCode = null ) : System
signingKey ICryptographicKey The signing key.
encryptionKey ICryptographicKey The encryption key.
inboxOwnerCode string The secret that proves ownership of the inbox at the .
return System

SaveAsync() public method

Saves the receiving endpoint including private data to the specified stream.
public SaveAsync ( Stream target, CancellationToken cancellationToken = default(CancellationToken) ) : Task
target Stream The stream to write to.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task