Browse Source

Merge remote-tracking branch 'origin/main'

# Conflicts:
#	spring-cloud-context/src/main/java/org/springframework/cloud/context/encrypt/EncryptorFactory.java
pull/1255/head
Olga MaciaszekSharma 1 year ago
parent
commit
63c3eb614d
  1. 8
      spring-cloud-context/src/main/java/org/springframework/cloud/context/encrypt/EncryptorFactory.java

8
spring-cloud-context/src/main/java/org/springframework/cloud/context/encrypt/EncryptorFactory.java

@ -39,15 +39,7 @@ public class EncryptorFactory { @@ -39,15 +39,7 @@ public class EncryptorFactory {
TextEncryptor encryptor;
if (data.contains("RSA PRIVATE KEY")) {
encryptor = new RsaSecretEncryptor(data);
try {
}
catch (IllegalArgumentException e) {
throw new KeyFormatException(e);
}
}
else if (data.startsWith("ssh-rsa") || data.contains("RSA PUBLIC KEY")) {
throw new KeyFormatException();

Loading…
Cancel
Save