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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getAlgorithm()
Return the digest algorithm, which is "sha1" by default and which can be "sha256" or another digest algorithm.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.java.lang.String
getSignature()
Return the directory signature string made with the authority's identity key in the version 3 directory protocol.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.
-
-
-
Method Detail
-
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
-
-