Class Pbdecres

java.lang.Object
  extended by Pbdecres

public final class Pbdecres
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
Pbdecres(ByteArray plaintext, ByteArray thesalt, ByteArray bfkey)
           
Pbdecres(java.lang.String freason)
           
 
Method Summary
 ByteArray getblowfishkey()
           
 java.lang.String getfailurereason()
           
 ByteArray getptext()
           
 ByteArray getsalt()
           
 boolean isvalid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pbdecres

public Pbdecres(java.lang.String freason)

Pbdecres

public Pbdecres(ByteArray plaintext,
                ByteArray thesalt,
                ByteArray bfkey)
Method Detail

isvalid

public boolean isvalid()

getfailurereason

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

getptext

public ByteArray getptext()
                   throws FeralcoreException
Throws:
FeralcoreException

getsalt

public ByteArray getsalt()
                  throws FeralcoreException
Throws:
FeralcoreException

getblowfishkey

public ByteArray getblowfishkey()
                         throws FeralcoreException
Throws:
FeralcoreException