Add a counter for requests for delivery certificates with/without e164s.

This commit is contained in:
Jon Chambers
2021-06-30 15:21:04 -04:00
committed by Jon Chambers
parent e3afcae7d3
commit b384ed7f5c
2 changed files with 25 additions and 20 deletions

View File

@@ -33,7 +33,7 @@ public class CertificateGenerator {
this.serverCertificate = ServerCertificate.parseFrom(serverCertificate);
}
public byte[] createFor(Account account, Device device, boolean includeE164) throws IOException, InvalidKeyException {
public byte[] createFor(Account account, Device device, boolean includeE164) throws InvalidKeyException {
SenderCertificate.Certificate.Builder builder = SenderCertificate.Certificate.newBuilder()
.setSenderDevice(Math.toIntExact(device.getId()))
.setExpires(System.currentTimeMillis() + TimeUnit.DAYS.toMillis(expiresDays))