TROAESEncryptionEnvelope

Overview

The TROAESEncryptionEnvelope provides a simple Message Envelope that can be used to encrypt on-the-wire communication using the widely-known symetric AES/Rijndael encryption algorithm.

To use the TROAESEncryptionEnvelope, simply drop it on your form (or instantiate it in code) and hook it up with the message's Envelopes collection property.

Location

 

constructor Create  override

Creates a new instance.

constructor Create(aOwner: TComponent)

Parameters:

  • aOwner: Owner.

Assign  override

Copies the contents of another, similar object.

procedure Assign(Source: TPersistent)

Parameters:

  • Source: Instance whose properties will be copied

EnvelopeMarker    (declared in TROMessageEnvelope)

This text mark can be used to distinguish envelopes.

property EnvelopeMarker: string read write

GetDefaultEnvelopeMarker  protected override

Returns EnvelopeMarker used by default.

function GetDefaultEnvelopeMarker: string

OnAfterEnvelopeProcessed    (declared in TROMessageEnvelope)

Fires after processing of envelope

property OnAfterEnvelopeProcessed: TROMessageEnvelopeProcessed read write
delegate: procedure OnAfterEnvelopeProcessed(AMessageEnvelope: TROMessageEnvelope; AStream: TStream; aMode: TROMessageEnvelopeMode; AMessage: IROMessage)

OnBeforeEnvelopeProcessed    (declared in TROMessageEnvelope)

Fires before processing of envelope

property OnBeforeEnvelopeProcessed: TROMessageEnvelopeProcessed read write
delegate: procedure OnBeforeEnvelopeProcessed(AMessageEnvelope: TROMessageEnvelope; AStream: TStream; aMode: TROMessageEnvelopeMode; AMessage: IROMessage)

Password

password

property Password: string read write

ProcessIncoming    (declared in TROMessageEnvelope)

Defines the processing of an incoming message.

function ProcessIncoming(aMessage: TROMessage; aStream: TStream): TStream

Parameters:

  • aMessage: incoming message
  • aStream: encoded stream

ProcessOutgoing    (declared in TROMessageEnvelope)

Defines the processing of an outgoing message.

function ProcessOutgoing(aMessage: TROMessage; aStream: TStream): TStream

Parameters:

  • aMessage: outgoing message
  • aStream: stream

ReuseOriginalStream  protected    (declared in TROMessageEnvelope)

Allows to reuse original stream

property ReuseOriginalStream: boolean read write

ROFreeNotification    (declared in TROComponent)

Forwards notification messages to all owned RO components.

procedure ROFreeNotification(AComponent: TComponent)

Parameters:

  • AComponent: component

RORemoveFreeNotification    (declared in TROComponent)

Disables destruction notification for specified RO component.

procedure RORemoveFreeNotification(AComponent: TComponent)

Parameters:

  • AComponent: component

 

EnvelopeMarker    (declared in TROMessageEnvelope)

This text mark can be used to distinguish envelopes.

property EnvelopeMarker: string read write

Password

password

property Password: string read write

ReuseOriginalStream  protected    (declared in TROMessageEnvelope)

Allows to reuse original stream

property ReuseOriginalStream: boolean read write

 

constructor Create  override

Creates a new instance.

constructor Create(aOwner: TComponent)

Parameters:

  • aOwner: Owner.

Assign  override

Copies the contents of another, similar object.

procedure Assign(Source: TPersistent)

Parameters:

  • Source: Instance whose properties will be copied

GetDefaultEnvelopeMarker  protected override

Returns EnvelopeMarker used by default.

function GetDefaultEnvelopeMarker: string

ProcessIncoming    (declared in TROMessageEnvelope)

Defines the processing of an incoming message.

function ProcessIncoming(aMessage: TROMessage; aStream: TStream): TStream

Parameters:

  • aMessage: incoming message
  • aStream: encoded stream

ProcessOutgoing    (declared in TROMessageEnvelope)

Defines the processing of an outgoing message.

function ProcessOutgoing(aMessage: TROMessage; aStream: TStream): TStream

Parameters:

  • aMessage: outgoing message
  • aStream: stream

ROFreeNotification    (declared in TROComponent)

Forwards notification messages to all owned RO components.

procedure ROFreeNotification(AComponent: TComponent)

Parameters:

  • AComponent: component

RORemoveFreeNotification    (declared in TROComponent)

Disables destruction notification for specified RO component.

procedure RORemoveFreeNotification(AComponent: TComponent)

Parameters:

  • AComponent: component

 

OnAfterEnvelopeProcessed    (declared in TROMessageEnvelope)

Fires after processing of envelope

property OnAfterEnvelopeProcessed: TROMessageEnvelopeProcessed read write
delegate: procedure OnAfterEnvelopeProcessed(AMessageEnvelope: TROMessageEnvelope; AStream: TStream; aMode: TROMessageEnvelopeMode; AMessage: IROMessage)

OnBeforeEnvelopeProcessed    (declared in TROMessageEnvelope)

Fires before processing of envelope

property OnBeforeEnvelopeProcessed: TROMessageEnvelopeProcessed read write
delegate: procedure OnBeforeEnvelopeProcessed(AMessageEnvelope: TROMessageEnvelope; AStream: TStream; aMode: TROMessageEnvelopeMode; AMessage: IROMessage)