All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.pgp.DashProtected

java.lang.Object
   |
   +----cryptix.pgp.DashProtected

public abstract class DashProtected
extends Object
This class enables the encoding and decoding of the "- " protection which will protect a String against some forms of corruption during email transport. Note that this class expects all line breaks to be represented (both before and after) as CRLFs.

Copyright © 1995-1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.1.1.1 $

Author:
Jill Baker

Constructor Index

 o DashProtected()

Method Index

 o decode(String)
Remove all "- "s from the start of lines.
 o encode(String)
Prefix all vulnerable lines with "- ".

Constructors

 o DashProtected
 public DashProtected()

Methods

 o encode
 public static String encode(String s)
Prefix all vulnerable lines with "- ".

Parameters:
s - text to be encoded
Returns:
dash-proteced text
 o decode
 public static String decode(String s)
Remove all "- "s from the start of lines.

Parameters:
s - dash-proteced text to be decoded
Returns:
text with dash-protection removed

All Packages  Class Hierarchy  This Package  Previous  Next  Index