| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized String | createNonce(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. repo, long The current time in seconds. timestamp)Implements org. Create nonce to be signed by the pusher |
| private static String | |
| public PushCertificate. | verify(String
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)Implements org. Verify trustworthiness of the received nonce. |
| HMACSHA1NonceGenerator | back to summary |
|---|---|
| public HMACSHA1NonceGenerator(String seed) Constructor for HMACSHA1NonceGenerator.
| |
| createNonce | back to summary |
|---|---|
| public synchronized String createNonce(Repository repo, long timestamp) Implements org. Doc from org. Create nonce to be signed by the pusher
| |
| toHex | back to summary |
|---|---|
| private static String toHex(byte[] bytes) | |
| verify | back to summary |
|---|---|
| public PushCertificate. Implements org. Doc from org. Verify trustworthiness of the received nonce.
| |