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

Instance Methods


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

String representation

 

method defaultEnvelopeMarker: String

 

String defaultEnvelopeMarker()

doUnWrap

 

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

 

Byte[] doUnWrap(SByte[] aStream)

Parameters:

  • aStream:

doWrap

 

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

 

Byte[] doWrap(SByte[] aStream)

Parameters:

  • aStream:

encodePassword

 

method encodePassword(aPassword: String): array of Byte

 

Byte[] encodePassword(String aPassword)

Parameters:

  • aPassword:

getEnabled    (declared in MessageEnvelope)

Gets boolean value of Enable property.

 

method getEnabled: Boolean

 

Boolean getEnabled()

getEnvelopeMarker    (declared in MessageEnvelope)

Gets envelope marker,

 

method getEnvelopeMarker: String

 

String getEnvelopeMarker()

getPassword

Returns the password string.

 

method getPassword: String

 

String getPassword()

makeCipher

 

method makeCipher(aMode: Integer): Cipher

 

Cipher makeCipher(Integer aMode)

Parameters:

  • aMode:

setEnabled    (declared in MessageEnvelope)

 

method setEnabled(value: Boolean)

 

void setEnabled(Boolean value)

Parameters:

  • value:

setEnvelopeMarker    (declared in MessageEnvelope)

 

method setEnvelopeMarker(value: String)

 

void setEnvelopeMarker(String value)

Parameters:

  • value:

setPassword

Sets the password string.

 

method setPassword(value: String)

 

void setPassword(String value)

Parameters:

  • value: Password string.

unWrap  final    (declared in MessageEnvelope)

Unwrap stream to future process

 

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

 

Byte[] unWrap(SByte[] aStream)

Parameters:

  • aStream: Given stream.

wrap  final    (declared in MessageEnvelope)

Wrap stream to future process

 

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

 

Byte[] wrap(SByte[] aStream)

Parameters:

  • aStream: Given stream.