Class Readferalcorecfg

java.lang.Object
  extended by Readferalcorecfg

public final class Readferalcorecfg
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
Readferalcorecfg(ByteArray thesalt, Fc3tuple tuplein, ByteArray privkeyin)
           
Readferalcorecfg(java.lang.String freason)
           
 
Method Summary
 java.lang.String getfailurereason()
           
 ByteArray getprivkey()
           
 ByteArray getsalt()
           
 Fc3tuple gettuple()
           
 boolean isloaded()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Readferalcorecfg

public Readferalcorecfg(java.lang.String freason)

Readferalcorecfg

public Readferalcorecfg(ByteArray thesalt,
                        Fc3tuple tuplein,
                        ByteArray privkeyin)
                 throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException
Method Detail

isloaded

public boolean isloaded()

getfailurereason

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

getsalt

public ByteArray getsalt()
                  throws FeralcoreException
Throws:
FeralcoreException

gettuple

public Fc3tuple gettuple()
                  throws FeralcoreException,
                         java.lang.CloneNotSupportedException
Throws:
FeralcoreException
java.lang.CloneNotSupportedException

getprivkey

public ByteArray getprivkey()
                     throws FeralcoreException
Throws:
FeralcoreException