mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-22 19:08:00 +01:00
Move const to companion object
This commit is contained in:
parent
b343b4ad17
commit
c40e2ba6c2
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,6 @@ import java.io.IOException
|
||||||
import java.security.KeyPairGenerator
|
import java.security.KeyPairGenerator
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
const val MILLIS_IN_YEAR = 1000L * 60 * 60 * 24 * 365
|
|
||||||
|
|
||||||
class KeyRingBuilder : KeyRingBuilderInterface<KeyRingBuilder> {
|
class KeyRingBuilder : KeyRingBuilderInterface<KeyRingBuilder> {
|
||||||
|
|
||||||
|
@ -217,6 +216,8 @@ class KeyRingBuilder : KeyRingBuilderInterface<KeyRingBuilder> {
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
const val MILLIS_IN_YEAR = 1000L * 60 * 60 * 24 * 365
|
||||||
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun generateKeyPair(spec: KeySpec): PGPKeyPair {
|
fun generateKeyPair(spec: KeySpec): PGPKeyPair {
|
||||||
spec.keyType.let { type ->
|
spec.keyType.let { type ->
|
||||||
|
|
Loading…
Reference in a new issue