public interface Descriptor extends Document
| Modifier and Type | Interface and Description |
|---|---|
static class |
Descriptor.CacheLocation |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exitPolicyAccepts(int port)
Return true if the exit policy of this router accepts most connections
to the specified destination port.
|
boolean |
exitPolicyAccepts(IPv4Address address,
int port)
Return true if the exit policy of this router permits connections
to the specified destination endpoint.
|
IPv4Address |
getAddress()
Return the IPv4 address of this router.
|
int |
getBodyLength() |
Descriptor.CacheLocation |
getCacheLocation() |
HexDigest |
getDescriptorDigest() |
Set<String> |
getFamilyMembers() |
long |
getLastListed() |
byte[] |
getNTorOnionKey() |
TorPublicKey |
getOnionKey()
Return the public key used to encrypt EXTEND cells while establishing
a circuit through this router.
|
int |
getRouterPort()
Return the port on which this node accepts TLS connections
for the main OR protocol, or 0 if no router service is advertised.
|
void |
setCacheLocation(Descriptor.CacheLocation location) |
void |
setLastListed(long timestamp) |
getRawDocumentBytes, getRawDocumentData, isValidDocumentHexDigest getDescriptorDigest()
void setLastListed(long timestamp)
long getLastListed()
void setCacheLocation(Descriptor.CacheLocation location)
Descriptor.CacheLocation getCacheLocation()
int getBodyLength()
TorPublicKey getOnionKey()
byte[] getNTorOnionKey()
IPv4Address getAddress()
int getRouterPort()
boolean exitPolicyAccepts(IPv4Address address, int port)
address - The IPv4 address of the destination.port - The destination port.boolean exitPolicyAccepts(int port)
port - The destination port.Copyright © 2015. All rights reserved.