BaseReceivePack: Add method to override the push cert

Change-Id: Id912f45c933c78a85b245fa7b6edebbeb40b009c
This commit is contained in:
Dave Borowitz 2015-07-15 17:58:26 -07:00
parent d8b9c5145b
commit c7c5fe718d
1 changed files with 14 additions and 0 deletions

View File

@ -269,6 +269,20 @@ public PushCertificate getPushCertificate() {
return pushCert;
}
/**
* Set the push certificate used to verify the pusher's identity.
* <p>
* Should only be called if reconstructing an instance without going through
* the normal {@link #recvCommands()} flow.
*
* @param cert
* the push certificate to set.
* @since 4.1
*/
public void setPushCertificate(PushCertificate cert) {
pushCert = cert;
}
/**
* Create a new pack receive for an open repository.
*