mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-24 03:47:57 +01:00
Move PGPDSL to pgpainless-wot testFixtures
This commit is contained in:
parent
408544a11c
commit
dc38d2764d
2 changed files with 5 additions and 5 deletions
|
@ -1,9 +1,8 @@
|
|||
package org.pgpainless.wot
|
||||
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.pgpainless.wot.dsl.PGPDSL
|
||||
import org.pgpainless.wot.testfixtures.AdHocVectors
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertTrue
|
||||
|
||||
class AdHocTest: PGPDSL {
|
||||
|
||||
|
|
|
@ -1,21 +1,22 @@
|
|||
package org.pgpainless.wot
|
||||
package org.pgpainless.wot.dsl
|
||||
|
||||
import org.bouncycastle.openpgp.PGPPublicKeyRing
|
||||
import org.bouncycastle.openpgp.PGPSignature
|
||||
import org.pgpainless.algorithm.RevocationStateType
|
||||
import org.pgpainless.key.OpenPgpFingerprint
|
||||
import org.pgpainless.key.info.KeyRingInfo
|
||||
import org.pgpainless.wot.WebOfTrust
|
||||
import org.pgpainless.wot.network.Node
|
||||
import org.pgpainless.wot.network.Fingerprint
|
||||
import org.pgpainless.wot.network.RevocationState
|
||||
|
||||
interface PGPDSL {
|
||||
|
||||
fun CertSynopsis(certificate: PGPPublicKeyRing): Node {
|
||||
fun Node(certificate: PGPPublicKeyRing): Node {
|
||||
return Node(Fingerprint(certificate), )
|
||||
}
|
||||
|
||||
fun CertSynopsis(validatedCert: KeyRingInfo): Node {
|
||||
fun Node(validatedCert: KeyRingInfo): Node {
|
||||
return Node(
|
||||
Fingerprint(validatedCert.fingerprint),
|
||||
validatedCert.primaryKeyExpirationDate,
|
Loading…
Reference in a new issue