mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-08 17:59:43 +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
|
@ -8,6 +8,7 @@ import java.io.InputStream
|
|||
import java.util.*
|
||||
import sop.external.ExternalSOP
|
||||
import sop.operation.ValidateUserId
|
||||
import sop.util.UTCUtil
|
||||
|
||||
class ValidateUserIdExternal(binary: String, environment: Properties) : ValidateUserId {
|
||||
|
||||
|
@ -35,4 +36,8 @@ class ValidateUserIdExternal(binary: String, environment: Properties) : Validate
|
|||
.bytes
|
||||
return true
|
||||
}
|
||||
|
||||
override fun validateAt(date: Date): ValidateUserId = apply {
|
||||
commandList.add("--validate-at=${UTCUtil.formatUTCDate(date)}")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue