Package net.i2p.data.router
Class RouterPrivateKeyFile
java.lang.Object
net.i2p.data.PrivateKeyFile
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
-
Constructor Summary
Constructors Constructor Description RouterPrivateKeyFile(File file)
-
Method Summary
Modifier and Type Method Description RouterIdentity
getRouterIdentity()
Read it in from the file.Methods inherited from class net.i2p.data.PrivateKeyFile
checkSignature, createIfAbsent, createIfAbsent, estimateHashCashTime, getDestination, getOfflineExpiration, getOfflineSignature, getPrivKey, getSigningPrivKey, getTransientSigningPrivKey, getTransientSigningPubKey, isOffline, main, open, open, setCertType, setDestination, setHashCashCert, setKeyCert, setOfflineData, setSignedCert, toString, validateKeyPairs, verifySignature, write
-
Constructor Details
-
Method Details
-
getRouterIdentity
Read it in from the file. Also sets the local privKey and signingPrivKey.- Throws:
IOException
DataFormatException
-