File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/org/apache/maven/plugins/gpg Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ public final class GpgConfLoader implements Loader {
123123 /**
124124 * Maximum key size, see <a href="https://wiki.gnupg.org/LargeKeys">Large Keys</a>.
125125 */
126- private static final long MAX_SIZE = 5 * 1024 + 1L ;
126+ private static final long MAX_SIZE = 16 * 1024 + 1L ;
127127
128128 @ Override
129129 public byte [] loadKeyRingMaterial (RepositorySystemSession session ) throws IOException {
@@ -137,7 +137,7 @@ public byte[] loadKeyRingMaterial(RepositorySystemSession session) throws IOExce
137137 if (Files .size (keyPath ) < MAX_SIZE ) {
138138 return Files .readAllBytes (keyPath );
139139 } else {
140- throw new IOException ("Refusing to load key " + keyPath + "; is larger than 5KB " );
140+ throw new IOException ("Refusing to load key " + keyPath + "; is larger than 16KB " );
141141 }
142142 }
143143 return null ;
You can’t perform that action at this time.
0 commit comments