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
This commit is contained in:
Dave Borowitz 2015-07-08 18:41:32 -07:00
parent 6e4e34bb9e
commit 1f2827ecaa
1 changed files with 7 additions and 1 deletions

View File

@ -204,7 +204,13 @@ public static PushCertificate fromReader(Reader r)
private final NonceGenerator nonceGenerator;
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) {
nonceSlopLimit = cfg.getCertNonceSlopLimit();
nonceGenerator = cfg.getNonceGenerator();