A valid certificate will not return null from any getter methods; callers may assume that any null value indicates a missing or invalid certificate.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | PushCertificate.
Verification result of the nonce returned during push. |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final String | |
| private final PushCertificate. | |
| private final String | |
| private final PushCertificateIdent | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | PushCertificate(String version, PushCertificateIdent pusher, String pushee, String nonce, PushCertificate.
|
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public List | Returns: the list of commands as one string to be feed into the signature verifier.Get the list of commands as one string to be feed into the signature verifier. |
| public String | Returns: the raw nonce value that was presented by the pusher.Get the raw nonce value that was presented by the pusher. |
| public PushCertificate. | Returns: verification status of the nonce embedded in the certificate.Get verification status of the nonce embedded in the certificate. |
| public String | Returns: URL of the repository the push was originally sent to.Get URL of the repository the push was originally sent to. |
| public String | Returns: the raw line that signed the cert, as a string.Get the raw line that signed the cert, as a string. |
| public PushCertificateIdent | Returns: identity of the pusher who signed the cert.Get identity of the pusher who signed the cert. |
| public String | Returns: the raw signature, consisting of the lines received between the lines"----BEGIN GPG SIGNATURE-----\n" and
"----END GPG SIGNATURE-----\n", inclusive.Get the raw signature |
| public String | |
| public int | |
| public String | |
| private StringBuilder | |
| public String | Returns: text payload of the certificate for the signature verifier.Get text payload of the certificate for the signature verifier. |
| public String | Returns: original text payload plus signature; the final output will be valid as input toorg..Get original text payload plus signature |
| commands | back to summary |
|---|---|
| private final List<ReceiveCommand> commands | |
| nonce | back to summary |
|---|---|
| private final String nonce | |
| nonceStatus | back to summary |
|---|---|
| private final PushCertificate. | |
| pushee | back to summary |
|---|---|
| private final String pushee | |
| pusher | back to summary |
|---|---|
| private final PushCertificateIdent pusher | |
| signature | back to summary |
|---|---|
| private final String signature | |
| version | back to summary |
|---|---|
| private final String version | |
| PushCertificate | back to summary |
|---|---|
| pack-priv PushCertificate(String version, PushCertificateIdent pusher, String pushee, String nonce, PushCertificate. | |
| commandsEqual | back to summary |
|---|---|
| private static boolean commandsEqual(PushCertificate c1, PushCertificate c2) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getCommands | back to summary |
|---|---|
| public List Get the list of commands as one string to be feed into the signature verifier.
| |
| getNonce | back to summary |
|---|---|
| public String getNonce() Get the raw nonce value that was presented by the pusher.
| |
| getNonceStatus | back to summary |
|---|---|
| public PushCertificate. Get verification status of the nonce embedded in the certificate.
| |
| getPushee | back to summary |
|---|---|
| public String getPushee() Get URL of the repository the push was originally sent to.
| |
| getPusher | back to summary |
|---|---|
| public String getPusher() Get the raw line that signed the cert, as a string.
| |
| getPusherIdent | back to summary |
|---|---|
| public PushCertificateIdent getPusherIdent() Get identity of the pusher who signed the cert.
| |
| getSignature | back to summary |
|---|---|
| public String getSignature() Get the raw signature
| |
| getVersion | back to summary |
|---|---|
| public String getVersion() Get the certificate version string.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| toStringBuilder | back to summary |
|---|---|
| private StringBuilder toStringBuilder() | |
| toText | back to summary |
|---|---|
| public String toText() Get text payload of the certificate for the signature verifier.
| |
| toTextWithSignature | back to summary |
|---|---|
| public String toTextWithSignature() Get original text payload plus signature
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final PushCertificate. | BAD
Nonce is invalid and did not match server's expectations. |
| public static final PushCertificate. | MISSING
Nonce is required, but was not sent by client. |
| public static final PushCertificate. | OK
Received nonce matches sent nonce, or is valid within the accepted slop window. |
| public static final PushCertificate. | SLOP
Received nonce is valid, but outside the accepted slop window. |
| public static final PushCertificate. | UNSOLICITED
Nonce was not expected, yet client sent one anyway. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PushCertificate. | |
| public static PushCertificate. |
| BAD | back to summary |
|---|---|
| public static final PushCertificate. Nonce is invalid and did not match server's expectations. | |
| MISSING | back to summary |
|---|---|
| public static final PushCertificate. Nonce is required, but was not sent by client. | |
| OK | back to summary |
|---|---|
| public static final PushCertificate. Received nonce matches sent nonce, or is valid within the accepted slop window. | |
| SLOP | back to summary |
|---|---|
| public static final PushCertificate. Received nonce is valid, but outside the accepted slop window. | |
| UNSOLICITED | back to summary |
|---|---|
| public static final PushCertificate. Nonce was not expected, yet client sent one anyway. | |
| NonceStatus | back to summary |
|---|---|
| private NonceStatus() | |
| valueOf | back to summary |
|---|---|
| public static PushCertificate. | |
| values | back to summary |
|---|---|
| public static PushCertificate. | |