| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The nonce to be signed by the pusherThe repository which should be used to obtain a unique String
such that the pusher cannot forge nonces by pushing to another
repository at the same time as well and reusing the nonce. db, long The current time in seconds. timestamp)Create nonce to be signed by the pusher |
| public PushCertificate. | Returns: a NonceStatus indicating the trustworthiness of the received nonce.The nonce which was received from the server received, String The nonce which was originally sent out to the client. sent, Repository The repository which should be used to obtain a unique String
such that the pusher cannot forge nonces by pushing to another
repository at the same time as well and reusing the nonce. db, boolean If the receiving backend is able to generate slop. This is
the case for serving via http protocol using more than one
http frontend. The client would talk to different http
frontends, which may have a slight difference of time due to allowSlop, int If `allowSlop` is true, this specifies the number of seconds
which we allow as slop. slop)Verify trustworthiness of the received nonce. |
| createNonce | back to summary |
|---|---|
| public String createNonce(Repository db, long timestamp) Create nonce to be signed by the pusher
| |
| verify | back to summary |
|---|---|
| public PushCertificate. Verify trustworthiness of the received nonce.
| |