Class Rerandelgamalctext

java.lang.Object
  extended by Rerandelgamalctext

public final class Rerandelgamalctext
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
Rerandelgamalctext(ByteArray ciphertext)
           
Rerandelgamalctext(java.lang.String freason)
           
 
Method Summary
 ByteArray getctext()
           
 java.lang.String getfailurereason()
           
 boolean isvalid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rerandelgamalctext

public Rerandelgamalctext(java.lang.String freason)

Rerandelgamalctext

public Rerandelgamalctext(ByteArray ciphertext)
Method Detail

isvalid

public boolean isvalid()

getfailurereason

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

getctext

public ByteArray getctext()
                   throws FeralcoreException
Throws:
FeralcoreException