Class Blowfishcbcdec

java.lang.Object
  extended by Blowfishcbcdec

public final class Blowfishcbcdec
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
Blowfishcbcdec(ByteArray plaintext)
           
Blowfishcbcdec(java.lang.String failurereason)
           
 
Method Summary
 java.lang.String getfailurereason()
           
 ByteArray getplaintext()
           
 boolean isdecrypted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Blowfishcbcdec

public Blowfishcbcdec(java.lang.String failurereason)

Blowfishcbcdec

public Blowfishcbcdec(ByteArray plaintext)
Method Detail

isdecrypted

public boolean isdecrypted()

getplaintext

public ByteArray getplaintext()
                       throws FeralcoreException
Throws:
FeralcoreException

getfailurereason

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