validate-userid: Add --validate-at option

This commit is contained in:
Paul Schaub 2025-04-08 17:08:06 +02:00
parent 5105b6f4ad
commit b300be42a4
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
3 changed files with 15 additions and 0 deletions

View file

@ -7,6 +7,7 @@ package sop.operation
import java.io.IOException
import java.io.InputStream
import sop.exception.SOPGPException
import java.util.*
/** Subcommand to validate UserIDs on certificates. */
interface ValidateUserId {
@ -75,4 +76,6 @@ interface ValidateUserId {
@Throws(
SOPGPException.BadData::class, IOException::class, SOPGPException.CertUserIdNoMatch::class)
fun subjects(certs: ByteArray): Boolean = subjects(certs.inputStream())
fun validateAt(date: Date): ValidateUserId
}