mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 10:19:39 +02:00
Port SelectUserId.validUserIds()
This commit is contained in:
parent
a00a90c175
commit
2ae9c94841
1 changed files with 1 additions and 5 deletions
|
@ -83,11 +83,7 @@ abstract class SelectUserId : Predicate<String>, (String) -> Boolean {
|
|||
|
||||
@JvmStatic
|
||||
fun validUserId(keyRing: PGPKeyRing) =
|
||||
object : SelectUserId() {
|
||||
private val info = PGPainless.inspectKeyRing(keyRing)
|
||||
|
||||
override fun invoke(userId: String): Boolean = info.isUserIdValid(userId)
|
||||
}
|
||||
validUserId(PGPainless.getInstance().toCertificate(keyRing))
|
||||
|
||||
@JvmStatic
|
||||
fun and(vararg filters: SelectUserId) =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue