net.i2p.data.router
Class RouterPrivateKeyFile

java.lang.Object
  extended by net.i2p.data.PrivateKeyFile
      extended by net.i2p.data.router.RouterPrivateKeyFile

public class RouterPrivateKeyFile
extends PrivateKeyFile

Same format as super, simply adds a method to treat it as a RouterIdentity instead of a Destination.

Since:
0.9.16

Field Summary
 
Fields inherited from class net.i2p.data.PrivateKeyFile
dest, file, privKey, signingPrivKey
 
Constructor Summary
RouterPrivateKeyFile(File file)
           
 
Method Summary
 RouterIdentity getRouterIdentity()
          Read it in from the file.
 
Methods inherited from class net.i2p.data.PrivateKeyFile
checkSignature, createIfAbsent, estimateHashCashTime, getDestination, getPrivKey, getSigningPrivKey, main, open, open, setCertType, setDestination, setHashCashCert, setKeyCert, setSignedCert, toString, validateKeyPairs, verifySignature, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RouterPrivateKeyFile

public RouterPrivateKeyFile(File file)
Method Detail

getRouterIdentity

public RouterIdentity getRouterIdentity()
                                 throws IOException,
                                        DataFormatException
Read it in from the file. Also sets the local privKey and signingPrivKey.

Throws:
IOException
DataFormatException