Skip to content

Commit f73c58a

Browse files
committed
Fix checkstyle
1 parent 2fc2a73 commit f73c58a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

services/cloudfront/src/main/java/software/amazon/awssdk/services/cloudfront/CloudFrontUtilities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ private static byte[] signPolicy(byte[] policyToSign, PrivateKey privateKey) thr
490490
return SigningUtils.signWithSha1Rsa(policyToSign, privateKey);
491491
case "EC":
492492
case "ECDSA":
493-
return SigningUtils.signWithSha1ECDSA(policyToSign, privateKey);
493+
return SigningUtils.signWithSha1ECDSA(policyToSign, privateKey);
494494
default:
495495
// do not attempt to use a generic Signer based on the privateKey algorithm:
496496
// future supported key types likely require different hash algorithms (eg, SHA256 or higher instead of SHA1)

services/cloudfront/src/main/java/software/amazon/awssdk/services/cloudfront/internal/utils/SigningUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ public static PrivateKey privateKeyFromPkcs8(byte[] derBytes) throws InvalidKeyS
238238
/**
239239
* We don't have a way to determine which algorithm to use, so we try to load as RSA and EC
240240
*/
241-
private static PrivateKey tryKeyLoadFromSpec(EncodedKeySpec privateKeySpec) throws NoSuchAlgorithmException, InvalidKeySpecException {
241+
private static PrivateKey tryKeyLoadFromSpec(EncodedKeySpec privateKeySpec)
242+
throws NoSuchAlgorithmException, InvalidKeySpecException {
242243
try {
243244
return KeyFactory.getInstance("RSA").generatePrivate(privateKeySpec);
244245
} catch (InvalidKeySpecException rsaFail) {

0 commit comments

Comments
 (0)