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:
parent
6e4e34bb9e
commit
1f2827ecaa
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue