net.i2p.data.router
Class RouterIdentity

java.lang.Object
  extended by net.i2p.data.DataStructureImpl
      extended by net.i2p.data.KeysAndCert
          extended by net.i2p.data.router.RouterIdentity
All Implemented Interfaces:
Serializable, DataStructure

public class RouterIdentity
extends KeysAndCert

Defines the unique identifier of a router, including any certificate or public key. As of 0.9.9 this data structure is immutable after the two keys and the certificate are set; attempts to change them will throw an IllegalStateException.

Since:
0.9.16 moved from net.i2p.data
Author:
jrandom
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.i2p.data.KeysAndCert
_certificate, _padding, _publicKey, _signingKey
 
Constructor Summary
RouterIdentity()
           
 
Method Summary
 boolean equals(Object o)
           
 boolean isHidden()
          This router specified that they should not be used as a part of a tunnel, nor queried for the netDb, and that disclosure of their contact information should be limited.
 
Methods inherited from class net.i2p.data.KeysAndCert
calculateHash, getCertificate, getHash, getPadding, getPublicKey, getSigningPublicKey, getSigType, hashCode, readBytes, setCertificate, setPadding, setPublicKey, setSigningPublicKey, toString, writeBytes
 
Methods inherited from class net.i2p.data.DataStructureImpl
fromBase64, fromByteArray, read, toBase64, toByteArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RouterIdentity

public RouterIdentity()
Method Detail

isHidden

public boolean isHidden()
This router specified that they should not be used as a part of a tunnel, nor queried for the netDb, and that disclosure of their contact information should be limited. This is ONLY if the certificate is a hidden type. Hidden mode may also be specified with a capability in the RouterInfo. Not recommended for direct use. Use of RouterInfo.isHidden() (which calls this) is preferred.


equals

public boolean equals(Object o)
Overrides:
equals in class KeysAndCert