diff --git a/pgpainless-core/src/main/kotlin/org/pgpainless/key/generation/KeyRingBuilder.kt b/pgpainless-core/src/main/kotlin/org/pgpainless/key/generation/KeyRingBuilder.kt index af650c4b..c101e2c0 100644 --- a/pgpainless-core/src/main/kotlin/org/pgpainless/key/generation/KeyRingBuilder.kt +++ b/pgpainless-core/src/main/kotlin/org/pgpainless/key/generation/KeyRingBuilder.kt @@ -25,7 +25,6 @@ import java.io.IOException import java.security.KeyPairGenerator import java.util.* -const val MILLIS_IN_YEAR = 1000L * 60 * 60 * 24 * 365 class KeyRingBuilder : KeyRingBuilderInterface { @@ -217,6 +216,8 @@ class KeyRingBuilder : KeyRingBuilderInterface { } companion object { + const val MILLIS_IN_YEAR = 1000L * 60 * 60 * 24 * 365 + @JvmStatic fun generateKeyPair(spec: KeySpec): PGPKeyPair { spec.keyType.let { type ->