public class PushCertificate extends Object
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 |
---|---|
static class |
PushCertificate.NonceStatus
Verification result of the nonce returned during push.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<ReceiveCommand> |
getCommands()
Get the list of commands as one string to be feed into the signature
verifier.
|
String |
getNonce()
Get the raw nonce value that was presented by the pusher.
|
PushCertificate.NonceStatus |
getNonceStatus()
Get verification status of the nonce embedded in the certificate.
|
String |
getPushee()
Get URL of the repository the push was originally sent to.
|
String |
getPusher()
Get the raw line that signed the cert, as a string.
|
PushCertificateIdent |
getPusherIdent()
Get identity of the pusher who signed the cert.
|
String |
getSignature()
Get the raw signature
|
String |
getVersion()
Get the certificate version string.
|
int |
hashCode() |
String |
toString() |
String |
toText()
Get text payload of the certificate for the signature verifier.
|
String |
toTextWithSignature()
Get original text payload plus signature
|
public String getVersion()
public String getPusher()
public PushCertificateIdent getPusherIdent()
public String getPushee()
public String getNonce()
public PushCertificate.NonceStatus getNonceStatus()
public List<ReceiveCommand> getCommands()
public String getSignature()
"----BEGIN GPG SIGNATURE-----\n"
and
"----END GPG SIGNATURE-----\n
", inclusive.public String toText()
public String toTextWithSignature()
PushCertificateParser.fromString(String)
.Copyright © 2019 Eclipse JGit Project. All rights reserved.