Browse Source

PushCertificateParser: Make constructor public

Primarily to aid in writing end-to-end tests, which must be written
outside this package as we don't currently have a Bouncy Castle
dependency.

Change-Id: Ia24179773140d9ecc616b3a6b2e630c85d800157
stable-4.1
Dave Borowitz 10 years ago
parent
commit
1f2827ecaa
  1. 8
      org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificateParser.java

8
org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificateParser.java

@ -204,7 +204,13 @@ public class PushCertificateParser {
private final NonceGenerator nonceGenerator; private final NonceGenerator nonceGenerator;
private final List<ReceiveCommand> commands = new ArrayList<>(); private final List<ReceiveCommand> commands = new ArrayList<>();
PushCertificateParser(Repository into, SignedPushConfig cfg) { /**
* @param into
* destination repository for the push.
* @param cfg
* configuration for signed push.
*/
public PushCertificateParser(Repository into, SignedPushConfig cfg) {
if (cfg != null) { if (cfg != null) {
nonceSlopLimit = cfg.getCertNonceSlopLimit(); nonceSlopLimit = cfg.getCertNonceSlopLimit();
nonceGenerator = cfg.getNonceGenerator(); nonceGenerator = cfg.getNonceGenerator();

Loading…
Cancel
Save