AesEncryptionEnvelope

Overview

The AESEncryptionEnvelope class is an implementation of MessageEnvelope that uses the widely-known symetric AES/Rijndael encryption mechanism for encrypting and decrypting messages that will be wired over a network.

 

namespace com.remobjects.aestesting;

interface

uses
  java.net, com.remobjects.sdk;

type
  ConsoleApp = class
  public
    class method Main(args: array of String);
  end;

implementation

class method ConsoleApp.Main(args: array of String);
begin
  var lService := new MegaDemoService_Proxy(new URI("http://localhost:8099/bin"));
  lService.ProxyMessage.Envelopes.put("AES", new AesEncryptionEnvelope("All work and no play makes Jack a dull boy."));
  System.out.println(lService.Sum(12, 13));
end;

end.

 

package com.remobjects.aestesting;

import java.net.URI;
import java.net.URISyntaxException;

import com.remobjects.sdk.*;

public class app {
  public static void main(String[] args) throws URISyntaxException {
    MegaDemoService_Proxy lService = new MegaDemoService_Proxy(new URI("http://localhost:8099/bin"));
    lService.getProxyMessage().getEnvelopes().put("AES", new AesEncryptionEnvelope("All work and no play makes Jack a dull boy."));
    System.out.println(lService.Sum(12, 13));
  }
}

Location

 

constructor

Creates AESEncryptionEnvelope with empty password.

 

constructor

 

AesEncryptionEnvelope()

constructor (String)

Creates AESEncryptionEnvelope with the given password.

 

constructor(aPassword: String)

 

AesEncryptionEnvelope(String aPassword)

Parameters:

  • aPassword: Password string.

defaultEnvelopeMarker  protected

String representation

 

method defaultEnvelopeMarker: String

 

String defaultEnvelopeMarker()

doUnWrap  protected

 

method doUnWrap(aStream: array of SByte): array of SByte

 

SByte[] doUnWrap(SByte[] aStream)

Parameters:

  • aStream:

doWrap  protected

 

method doWrap(aStream: array of SByte): array of SByte

 

SByte[] doWrap(SByte[] aStream)

Parameters:

  • aStream:

Enabled    (declared in MessageEnvelope)

 

property Enabled: Boolean read write;

 

Boolean Enabled { __get; __set; }

EnvelopeMarker    (declared in MessageEnvelope)

 

property EnvelopeMarker: String read write;

 

String EnvelopeMarker { __get; __set; }

Password

 

property Password: String read write;

 

String Password { __get; __set; }

unWrap    (declared in MessageEnvelope)

Unwrap stream to future process

 

method unWrap(aStream: array of SByte): array of SByte

 

SByte[] unWrap(SByte[] aStream)

Parameters:

  • aStream: Given stream.

wrap    (declared in MessageEnvelope)

Wrap stream to future process

 

method wrap(aStream: array of SByte): array of SByte

 

SByte[] wrap(SByte[] aStream)

Parameters:

  • aStream: Given stream.

 

Enabled    (declared in MessageEnvelope)

 

property Enabled: Boolean read write;

 

Boolean Enabled { __get; __set; }

EnvelopeMarker    (declared in MessageEnvelope)

 

property EnvelopeMarker: String read write;

 

String EnvelopeMarker { __get; __set; }

Password

 

property Password: String read write;

 

String Password { __get; __set; }

 

constructor

Creates AESEncryptionEnvelope with empty password.

 

constructor

 

AesEncryptionEnvelope()

constructor (String)

Creates AESEncryptionEnvelope with the given password.

 

constructor(aPassword: String)

 

AesEncryptionEnvelope(String aPassword)

Parameters:

  • aPassword: Password string.

defaultEnvelopeMarker  protected

String representation

 

method defaultEnvelopeMarker: String

 

String defaultEnvelopeMarker()

doUnWrap  protected

 

method doUnWrap(aStream: array of SByte): array of SByte

 

SByte[] doUnWrap(SByte[] aStream)

Parameters:

  • aStream:

doWrap  protected

 

method doWrap(aStream: array of SByte): array of SByte

 

SByte[] doWrap(SByte[] aStream)

Parameters:

  • aStream:

unWrap    (declared in MessageEnvelope)

Unwrap stream to future process

 

method unWrap(aStream: array of SByte): array of SByte

 

SByte[] unWrap(SByte[] aStream)

Parameters:

  • aStream: Given stream.

wrap    (declared in MessageEnvelope)

Wrap stream to future process

 

method wrap(aStream: array of SByte): array of SByte

 

SByte[] wrap(SByte[] aStream)

Parameters:

  • aStream: Given stream.