13 references to GroupValueOrDefault
Microsoft.DotNet.SignCheckLibrary (13)
Utils.cs (1)
296
return timezoneRegex.Match(timestamp).
GroupValueOrDefault
("timezone");
Verification\MachOVerifier.cs (4)
141
return timestampRegex.Match(timestampOutput).
GroupValueOrDefault
("timestamp").DateTimeOrDefault(DateTime.MaxValue);
171
DateTime effectiveOn = effectiveOnRegex.Match(opensslOutput).
GroupValueOrDefault
("effectiveOn").DateTimeOrDefault(DateTime.MaxValue);
172
DateTime expiresOn = expiresOnRegex.Match(opensslOutput).
GroupValueOrDefault
("expiresOn").DateTimeOrDefault(DateTime.MinValue);
173
string algorithm = algorithmRegex.Match(opensslOutput).
GroupValueOrDefault
("algorithm") ?? SignCheckResources.NA;
Verification\PgpVerifier.cs (5)
112
string keyId = signatureKeyInfoMatch.
GroupValueOrDefault
("keyId");
119
SignedOn = signatureTimestampsMatch.
GroupValueOrDefault
("signedOn").DateTimeOrDefault(DateTime.MaxValue),
120
ExpiryDate = signatureTimestampsMatch.
GroupValueOrDefault
("expiresOn").DateTimeOrDefault(DateTime.MaxValue),
121
SignatureAlgorithm = signatureKeyInfoMatch.
GroupValueOrDefault
("algorithm"),
122
EffectiveDate = keyInfoMatch.
GroupValueOrDefault
("createdOn").DateTimeOrDefault(DateTime.MaxValue)
Verification\PkgVerifier.cs (3)
124
DateTime signedOnTimestamp = signedOnRegex.Match(signingVerificationOutput).
GroupValueOrDefault
("timestamp").DateTimeOrDefault(DateTime.MaxValue);
134
ExpiryDate = match.
GroupValueOrDefault
("timestamp").DateTimeOrDefault(DateTime.MinValue),
136
SignatureAlgorithm = match.
GroupValueOrDefault
("algorithm")