/**
* A reference for a node. The noderef contains all data that is necessary to
* establish a trusted and secure connection to the node.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
public class NodeRef {
/**
* Creates a new noderef that is initialized with fields from the given
* message.
- *
+ *
* @param fromMessage
* The message to get initial values for the noderef from
*/
/**
* Returns the identity of the node.
- *
+ *
* @return The identity of the node
*/
public String getIdentity() {
/**
* Sets the identity of the node.
- *
+ *
* @param identity
* The identity of the node
*/
/**
* Returns whether the node is an opennet peer.
- *
+ *
* @return <code>true</code> if the node is an opennet peer,
* <code>false</code> otherwise
*/
/**
* Sets whether the node is an opennet peer.
- *
+ *
* @param opennet
* <code>true</code> if the node is an opennet peer,
* <code>false</code> otherwise
/**
* Returns the name of the node. If the node is an opennet peer, it will not
* have a name!
- *
+ *
* @return The name of the node, or <code>null</code> if the node is an
* opennet peer
*/
/**
* Sets the name of the peer.
- *
+ *
* @param name
* The name of the peer
*/
/**
* Returns the location of the node.
- *
+ *
* @return The location of the node
*/
public double getLocation() {
/**
* Sets the location of the node
- *
+ *
* @param location
* The location of the node
*/
/**
* Returns the IP addresses and port numbers of the node.
- *
+ *
* @return The IP addresses and port numbers of the node
*/
public String getPhysicalUDP() {
/**
* Sets the IP addresses and port numbers of the node.
- *
+ *
* @param physicalUDP
* The IP addresses and port numbers of the node
*/
/**
* Returns the ARK of the node.
- *
+ *
* @return The ARK of the node
*/
public ARK getARK() {
/**
* Sets the ARK of the node.
- *
+ *
* @param ark
* The ARK of the node
*/
/**
* Returns the public DSA key of the node.
- *
+ *
* @return The public DSA key of the node
*/
public String getDSAPublicKey() {
/**
* Sets the public DSA key of the node.
- *
+ *
* @param dsaPublicKey
* The public DSA key of the node
*/
/**
* Returns the DSA group of the node.
- *
+ *
* @return The DSA group of the node
*/
public DSAGroup getDSAGroup() {
/**
* Sets the DSA group of the node.
- *
+ *
* @param dsaGroup
* The DSA group of the node
*/
/**
* Returns the negotiation types supported by the node.
- *
+ *
* @return The node’s supported negotiation types
*/
public int[] getNegotiationTypes() {
/**
* Sets the negotiation types supported by the node.
- *
+ *
* @param negotiationTypes
* The node’s supported negotiation types
*/
/**
* Returns the version of the node.
- *
+ *
* @return The version of the node
*/
public Version getVersion() {
/**
* Sets the version of the node.
- *
+ *
* @param version
* The version of the node
*/
/**
* Returns the last good version of the node.
- *
+ *
* @return The oldest version the node will connect to
*/
public Version getLastGoodVersion() {
/**
* Sets the last good version of the node.
- *
+ *
* @param lastGoodVersion
* The oldest version the node will connect to
*/
/**
* Returns whether the node is a testnet node.
- *
+ *
* @return <code>true</code> if the node is a testnet node,
* <code>false</code> otherwise
*/
/**
* Sets whether this node is a testnet node.
- *
+ *
* @param testnet
* <code>true</code> if the node is a testnet node,
* <code>false</code> otherwise
/**
* Returns the signature of the noderef.
- *
+ *
* @return The signature of the noderef
*/
public String getSignature() {
/**
* Sets the signature of the noderef.
- *
+ *
* @param signature
* The signature of the noderef
*/