- java.lang.Object
-
- org.eclipse.jgit.transport.PushCertificate
-
public class PushCertificate extends Object
The required information to verify the push.A valid certificate will not return null from any getter methods; callers may assume that any null value indicates a missing or invalid certificate.
- Since:
- 4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPushCertificate.NonceStatusVerification result of the nonce returned during push.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<ReceiveCommand>getCommands()Get the list of commands as one string to be feed into the signature verifier.StringgetNonce()Get the raw nonce value that was presented by the pusher.PushCertificate.NonceStatusgetNonceStatus()Get verification status of the nonce embedded in the certificate.StringgetPushee()Get URL of the repository the push was originally sent to.StringgetPusher()Get the raw line that signed the cert, as a string.PushCertificateIdentgetPusherIdent()Get identity of the pusher who signed the cert.StringgetSignature()Get the raw signatureStringgetVersion()Get the certificate version string.inthashCode()StringtoString()StringtoText()Get text payload of the certificate for the signature verifier.StringtoTextWithSignature()Get original text payload plus signature
-
-
-
Method Detail
-
getVersion
public String getVersion()
Get the certificate version string.- Returns:
- the certificate version string.
- Since:
- 4.1
-
getPusher
public String getPusher()
Get the raw line that signed the cert, as a string.- Returns:
- the raw line that signed the cert, as a string.
- Since:
- 4.0
-
getPusherIdent
public PushCertificateIdent getPusherIdent()
Get identity of the pusher who signed the cert.- Returns:
- identity of the pusher who signed the cert.
- Since:
- 4.1
-
getPushee
public String getPushee()
Get URL of the repository the push was originally sent to.- Returns:
- URL of the repository the push was originally sent to.
- Since:
- 4.0
-
getNonce
public String getNonce()
Get the raw nonce value that was presented by the pusher.- Returns:
- the raw nonce value that was presented by the pusher.
- Since:
- 4.1
-
getNonceStatus
public PushCertificate.NonceStatus getNonceStatus()
Get verification status of the nonce embedded in the certificate.- Returns:
- verification status of the nonce embedded in the certificate.
- Since:
- 4.0
-
getCommands
public List<ReceiveCommand> getCommands()
Get the list of commands as one string to be feed into the signature verifier.- Returns:
- the list of commands as one string to be feed into the signature verifier.
- Since:
- 4.1
-
getSignature
public String getSignature()
Get the raw signature- Returns:
- the raw signature, consisting of the lines received between the
lines
"----BEGIN GPG SIGNATURE-----\n"and"----END GPG SIGNATURE-----\n", inclusive. - Since:
- 4.0
-
toText
public String toText()
Get text payload of the certificate for the signature verifier.- Returns:
- text payload of the certificate for the signature verifier.
- Since:
- 4.1
-
toTextWithSignature
public String toTextWithSignature()
Get original text payload plus signature- Returns:
- original text payload plus signature; the final output will be
valid as input to
PushCertificateParser.fromString(String). - Since:
- 4.1
-
-