mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-26 14:22:05 +01:00
Do not spaghetti
This commit is contained in:
parent
431a65517e
commit
99be722875
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ public interface KeyType {
|
||||||
* @return true if the key can encrypt for storage
|
* @return true if the key can encrypt for storage
|
||||||
*/
|
*/
|
||||||
default boolean canEncryptStorage() {
|
default boolean canEncryptStorage() {
|
||||||
return canEncryptCommunication();
|
return getAlgorithm().isEncryptionCapable();
|
||||||
}
|
}
|
||||||
|
|
||||||
static KeyType RSA(RsaLength length) {
|
static KeyType RSA(RsaLength length) {
|
||||||
|
|
Loading…
Reference in a new issue