Package org.torproject.descriptor
Interface DirSourceEntry
- 
- All Superinterfaces:
- java.io.Serializable
 
 public interface DirSourceEntry extends java.io.SerializableContains details about an authority and its vote that contributed to a consensus.A directory source entry is not a descriptor type of its own but is part of a network status consensus ( RelayNetworkStatusConsensus).- Since:
- 1.0.0
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetContactLine()Return the contact information for this authority, which may contain non-ASCII characters.intgetDirPort()Return the TCP port where this authority accepts directory-related HTTP connections.byte[]getDirSourceEntryBytes()Return the raw directory source entry bytes.java.lang.StringgetHostname()Return the authority's hostname.java.lang.StringgetIdentity()Return a SHA-1 digest of the authority's long-term authority identity key used for the version 3 directory protocol, encoded as 40 upper-case hexadecimal characters.java.lang.StringgetIp()Return the authority's primary IPv4 address in dotted-quad format.java.lang.StringgetNickname()Return the authority's nickname consisting of 1 to 19 alphanumeric characters.intgetOrPort()Return the TCP port where this authority accepts TLS connections for the main OR protocol.java.lang.StringgetVoteDigestSha1Hex()Return the SHA-1 vote digest, encoded as 40 lower-case hexadecimal characters.booleanisLegacy()Return whether this directory source entry was created using a legacy key.
 
- 
- 
- 
Method Detail- 
getDirSourceEntryBytesbyte[] getDirSourceEntryBytes() Return the raw directory source entry bytes.- Since:
- 1.0.0
 
 - 
getNicknamejava.lang.String getNickname() Return the authority's nickname consisting of 1 to 19 alphanumeric characters.- Since:
- 1.0.0
 
 - 
getIdentityjava.lang.String getIdentity() Return a SHA-1 digest of the authority's long-term authority identity key used for the version 3 directory protocol, encoded as 40 upper-case hexadecimal characters.- Since:
- 1.0.0
 
 - 
getHostnamejava.lang.String getHostname() Return the authority's hostname.- Since:
- 1.2.0
 
 - 
getIpjava.lang.String getIp() Return the authority's primary IPv4 address in dotted-quad format.- Since:
- 1.0.0
 
 - 
getDirPortint getDirPort() Return the TCP port where this authority accepts directory-related HTTP connections.- Since:
- 1.0.0
 
 - 
getOrPortint getOrPort() Return the TCP port where this authority accepts TLS connections for the main OR protocol.- Since:
- 1.0.0
 
 - 
isLegacyboolean isLegacy() Return whether this directory source entry was created using a legacy key.- Since:
- 1.0.0
 
 - 
getContactLinejava.lang.String getContactLine() Return the contact information for this authority, which may contain non-ASCII characters.- Since:
- 1.0.0
 
 - 
getVoteDigestSha1Hexjava.lang.String getVoteDigestSha1Hex() Return the SHA-1 vote digest, encoded as 40 lower-case hexadecimal characters.- Since:
- 1.7.0
 
 
- 
 
-