Package org.torproject.descriptor
Interface DirectorySignature
- All Superinterfaces:
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 TypeMethodDescriptionReturn the digest algorithm, which is "sha1" by default and which can be "sha256" or another digest algorithm.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.Return the directory signature string made with the authority's identity key in the version 3 directory protocol.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
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
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
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
String getSignature()Return the directory signature string made with the authority's identity key in the version 3 directory protocol.- Since:
- 1.0.0
-