Package org.torproject.descriptor
Interface DirectorySignature
- All Superinterfaces:
java.io.Serializable
public interface DirectorySignature
extends java.io.Serializable
Contains the signature of a network status consensus or vote.
A directory signature is not a descriptor type of its own but is
part of a network status consensus
(RelayNetworkStatusConsensus) or vote
(RelayNetworkStatusVote).
- Since:
- 1.0.0
-
Method Summary
Modifier and Type Method Description java.lang.StringgetAlgorithm()Return the digest algorithm, which is "sha1" by default and which can be "sha256" or another digest algorithm.java.lang.StringgetIdentity()Return the SHA-1 digest of the authority's long-term identity key in the version 3 directory protocol, encoded as 40 upper-case hexadecimal characters.java.lang.StringgetSignature()Return the directory signature string made with the authority's identity key in the version 3 directory protocol.java.lang.StringgetSigningKeyDigestSha1Hex()Return the SHA-1 digest of the authority's medium-term signing key in the version 3 directory protocol, encoded as 40 upper-case hexadecimal characters.
-
Method Details
-
getAlgorithm
java.lang.String getAlgorithm()Return the digest algorithm, which is "sha1" by default and which can be "sha256" or another digest algorithm.- Since:
- 1.0.0
-
getIdentity
java.lang.String getIdentity()Return the SHA-1 digest of the authority's long-term identity key in the version 3 directory protocol, encoded as 40 upper-case hexadecimal characters.- Since:
- 1.0.0
-
getSigningKeyDigestSha1Hex
java.lang.String getSigningKeyDigestSha1Hex()Return the SHA-1 digest of the authority's medium-term signing key in the version 3 directory protocol, encoded as 40 upper-case hexadecimal characters.- Since:
- 1.7.0
-
getSignature
java.lang.String getSignature()Return the directory signature string made with the authority's identity key in the version 3 directory protocol.- Since:
- 1.0.0
-