mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-10 02:39:45 +02:00
validate-userid: Add --validate-at option
This commit is contained in:
parent
5105b6f4ad
commit
b300be42a4
3 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue