Interface Nonce

  • All Known Implementing Classes:
    DefaultNonce

    public interface Nonce
    A generated value to prevent playback attacks in communication protocols. This interface forces several restrictions on a nonce, allowing recovery of several information components.
    Author:
    Garret Wilson
    • Method Detail

      • getTime

        java.util.Date getTime()
        Returns:
        The time represented by the nonce.
      • getPrivateKey

        java.lang.String getPrivateKey()
        Returns:
        The private key represented by the nonce.
      • toString

        java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the nonce, suitable for serialization.