mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-16 01:12:05 +01:00
Remove KeyRingUtils.unlockSecretKey()
This commit is contained in:
parent
ea3502c8c6
commit
618844b212
1 changed files with 0 additions and 17 deletions
|
@ -8,7 +8,6 @@ import openpgp.openPgpKeyId
|
||||||
import org.bouncycastle.bcpg.S2K
|
import org.bouncycastle.bcpg.S2K
|
||||||
import org.bouncycastle.bcpg.SecretKeyPacket
|
import org.bouncycastle.bcpg.SecretKeyPacket
|
||||||
import org.bouncycastle.extensions.certificate
|
import org.bouncycastle.extensions.certificate
|
||||||
import org.bouncycastle.extensions.unlock
|
|
||||||
import org.bouncycastle.openpgp.*
|
import org.bouncycastle.openpgp.*
|
||||||
import org.bouncycastle.util.Strings
|
import org.bouncycastle.util.Strings
|
||||||
import org.pgpainless.exception.MissingPassphraseException
|
import org.pgpainless.exception.MissingPassphraseException
|
||||||
|
@ -154,22 +153,6 @@ class KeyRingUtils {
|
||||||
.toList())
|
.toList())
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Unlock a {@link PGPSecretKey} and return the resulting {@link PGPPrivateKey}.
|
|
||||||
*
|
|
||||||
* @param secretKey secret key
|
|
||||||
* @param protector protector to unlock the secret key
|
|
||||||
* @return private key
|
|
||||||
*
|
|
||||||
* @throws PGPException if something goes wrong (e.g. wrong passphrase)
|
|
||||||
*/
|
|
||||||
@JvmStatic
|
|
||||||
@Deprecated("Deprecated in favor of secretKey.unlock(protector)",
|
|
||||||
ReplaceWith("secretKey.unlock(protector)"))
|
|
||||||
fun unlockSecretKey(secretKey: PGPSecretKey, protector: SecretKeyRingProtector): PGPPrivateKey {
|
|
||||||
return secretKey.unlock(protector)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new {@link PGPPublicKeyRingCollection} from an array of {@link PGPPublicKeyRing PGPPublicKeyRings}.
|
* Create a new {@link PGPPublicKeyRingCollection} from an array of {@link PGPPublicKeyRing PGPPublicKeyRings}.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue