Module convex.peer
Package convex.net

Class ChallengeRequest

java.lang.Object
convex.net.ChallengeRequest

public class ChallengeRequest extends Object
  • Field Details

    • peerKey

      protected AccountKey peerKey
    • timeout

      protected long timeout
    • token

      protected Hash token
    • sendHash

      protected Hash sendHash
  • Method Details

    • create

      public static ChallengeRequest create(AccountKey peerKey)
    • create

      public static ChallengeRequest create(AccountKey peerKey, int timeoutSeconds)
    • send

      public boolean send(AConnection connection, Peer peer)
      Sends out a single challenge to the remote peer.
      Parameters:
      connection - Connection
      peer - This Peer
      Returns:
      Boolean true if sending succeeded
    • getPeerKey

      public AccountKey getPeerKey()
    • getToken

      public Hash getToken()
    • getSendHash

      public Hash getSendHash()
    • isTimedout

      public boolean isTimedout()