mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 18:29: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
|
@JvmStatic
|
||||||
fun validUserId(keyRing: PGPKeyRing) =
|
fun validUserId(keyRing: PGPKeyRing) =
|
||||||
object : SelectUserId() {
|
validUserId(PGPainless.getInstance().toCertificate(keyRing))
|
||||||
private val info = PGPainless.inspectKeyRing(keyRing)
|
|
||||||
|
|
||||||
override fun invoke(userId: String): Boolean = info.isUserIdValid(userId)
|
|
||||||
}
|
|
||||||
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun and(vararg filters: SelectUserId) =
|
fun and(vararg filters: SelectUserId) =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue