mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-25 04:17:59 +01:00
Move const to companion object
This commit is contained in:
parent
d020e7e12c
commit
56d573aec6
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> {
|
||||||
|
|
||||||
|
@ -225,6 +224,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