mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-12-09 22:01:10 +01:00
Remove withDefaultKeyFlags method
This commit is contained in:
parent
f4bc9bdbcc
commit
2378162953
8 changed files with 17 additions and 20 deletions
|
|
@ -103,7 +103,7 @@ public class KeyRingBuilder implements KeyRingBuilderInterface {
|
|||
WithAdditionalUserIdOrPassphrase builder = this
|
||||
.withMasterKey(
|
||||
KeySpec.getBuilder(KeyType.RSA(length))
|
||||
.withDefaultKeyFlags()
|
||||
.withKeyFlags(KeyFlag.CERTIFY_OTHER, KeyFlag.SIGN_DATA, KeyFlag.ENCRYPT_COMMS)
|
||||
.withDefaultAlgorithms())
|
||||
.withPrimaryUserId(userId);
|
||||
|
||||
|
|
|
|||
|
|
@ -42,16 +42,6 @@ public class KeySpecBuilder implements KeySpecBuilderInterface {
|
|||
return new WithDetailedConfigurationImpl();
|
||||
}
|
||||
|
||||
@Override
|
||||
public WithDetailedConfiguration withDefaultKeyFlags() {
|
||||
return withKeyFlags(
|
||||
KeyFlag.CERTIFY_OTHER,
|
||||
KeyFlag.SIGN_DATA,
|
||||
KeyFlag.ENCRYPT_COMMS,
|
||||
KeyFlag.ENCRYPT_STORAGE,
|
||||
KeyFlag.AUTHENTICATION);
|
||||
}
|
||||
|
||||
@Override
|
||||
public KeySpec withInheritedSubPackets() {
|
||||
return new KeySpec(type, null, true);
|
||||
|
|
|
|||
|
|
@ -27,8 +27,6 @@ public interface KeySpecBuilderInterface {
|
|||
|
||||
WithDetailedConfiguration withKeyFlags(@Nonnull KeyFlag... flags);
|
||||
|
||||
WithDetailedConfiguration withDefaultKeyFlags();
|
||||
|
||||
KeySpec withInheritedSubPackets();
|
||||
|
||||
interface WithDetailedConfiguration {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue