Package com.globalmentor.security
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getPrivateKey()
java.util.Date
getTime()
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
- Returns:
- A string representation of the nonce, suitable for serialization.
-
-