Package net.i2p.data.router
Class RouterIdentity
java.lang.Object
net.i2p.data.DataStructureImpl
net.i2p.data.KeysAndCert
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
Constructors Constructor Description RouterIdentity()
-
Method Summary
Methods inherited from class net.i2p.data.KeysAndCert
calculateHash, combinePadding, getCertificate, getEncType, 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
-
Constructor Details
-
RouterIdentity
public RouterIdentity()
-
-
Method Details
-
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
- Overrides:
equals
in classKeysAndCert
-