All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.statement.StatementString

java.lang.Object
   |
   +----semper.statement.Statement
           |
           +----semper.statement.StatementMemory
                   |
                   +----semper.statement.StatementString

public class StatementString
extends StatementMemory
A StatementString is a subclass of StatementMemory, intended to handle Statements created from strings.

Version:
$Revision: 1.3 $ $Date: 1998/01/30 11:24:33 $
Author:
Jesper Drud Nielsen (drud@cryptomathic.dk), Thomas Sepstrup Nielsen (tsn@cryptomathic.dk), Torben Pryds Pedersen (tpp@cryptomathic.dk)
See Also:
CryptoMan, Statement, StatementMemory

Constructor Index

 o StatementString()
Creates a new, empty StatementString object.
 o StatementString(String)
Creates a new StatementString object containing message, senderID and RecipientId.

Method Index

 o getPlainText()
Returns the message in the StatementString provided it is a plaintext.
 o printMessage()
Temporary function printing the message.

Constructors

 o StatementString
 public StatementString()
Creates a new, empty StatementString object. A new StatementString object is created. All of its attributes are empty, except that its message_type attribute indicates that the Statement is empty. This method is intended for use by the recipient of a linearized statement, who will make an empty statement and initialise its contents from a stream.

 o StatementString
 public StatementString(String newMessage) throws UnsupportedEncodingException
Creates a new StatementString object containing message, senderID and RecipientId. A new StatementString object containing a given plaintext and having a sender identification and recipient identification.

Parameters:
newMessage - The plaintext message to insert in the Statement
Throws: UnsupportedEncodingException
if newMessage could not be converted to bytearray

Methods

 o getPlainText
 public Object getPlainText() throws StatementManException
Returns the message in the StatementString provided it is a plaintext.

Returns:
the array of bytes contained in the plaintext
Throws: StatementManException
if the statement is not a plaintext or the message is not an array of bytes.
Overrides:
getPlainText in class StatementMemory
 o printMessage
 protected void printMessage()
Temporary function printing the message.

Overrides:
printMessage in class StatementMemory

All Packages  Class Hierarchy  This Package  Previous  Next  Index