Class Hybridptext

java.lang.Object
  extended by Hybridptext

public final class Hybridptext
extends java.lang.Object

From Scott Meyers on C++: Item 18: Make interfaces easy to use correctly and hard to use incorrectly. So, two constructors are used and exceptions are thrown for invalid accessor calls.


Constructor Summary
Hybridptext(ByteArray plaintext)
           
Hybridptext(java.lang.String freason)
           
 
Method Summary
 java.lang.String getfailurereason()
           
 ByteArray getptext()
           
 boolean isvalid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hybridptext

public Hybridptext(java.lang.String freason)

Hybridptext

public Hybridptext(ByteArray plaintext)
Method Detail

isvalid

public boolean isvalid()

getptext

public ByteArray getptext()
                   throws FeralcoreException
Throws:
FeralcoreException

getfailurereason

public java.lang.String getfailurereason()
                                  throws FeralcoreException
Throws:
FeralcoreException