Skip to content

Commit ce783a5

Browse files
blasttoyssoh boon keongGTYeokhdependabot[bot]snyk-bot
authored
v2.1.1 (#53) (#54)
* for APEX 2 * clean * backup before clean, verifysupportedkeyfiletype * readme updated * clean * clean * clean * clean * update README.md * update README.md * Bump log4j-api from 2.14.1 to 2.15.0 Bumps log4j-api from 2.14.1 to 2.15.0. --- updated-dependencies: - dependency-name: org.apache.logging.log4j:log4j-api dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * fix: pom.xml to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JAVA-ORGAPACHELOGGINGLOG4J-2314719 - https://snyk.io/vuln/SNYK-JAVA-ORGAPACHELOGGINGLOG4J-2314720 * fix: pom.xml to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JAVA-ORGAPACHELOGGINGLOG4J-2314720 * Bump log4j-core from 2.14.1 to 2.15.0 Bumps log4j-core from 2.14.1 to 2.15.0. --- updated-dependencies: - dependency-name: org.apache.logging.log4j:log4j-core dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Sync * v2.1.1 Co-authored-by: soh boon keong <[email protected]> Co-authored-by: GTYeokh <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: snyk-bot <[email protected]> Co-authored-by: soh boon keong <[email protected]> Co-authored-by: GTYeokh <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: snyk-bot <[email protected]> Co-authored-by: mingtat <[email protected]>
1 parent a6859b3 commit ce783a5

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
### V2.1.1
4+
5+
- Fixed vulnerability CVE-2021-44228
6+
- Update to log4j version 2.15.0
7+
38
### V2.1
49

510
- Release for APEX 2

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ mvn package
4545
```
4646

4747
The compiled _jar_ file will be located in the **target** folder
48-
+ java-apex-api-security-<version>-SNAPSHOT.jar
49-
+ java-apex-api-security-<version>-SNAPSHOT-jar-with-dependencies.jar (this includes log4j libraries)
48+
+ java-apex-api-security-<version>.jar
49+
+ java-apex-api-security-<version>-jar-with-dependencies.jar (this includes log4j libraries)
5050

5151
Import this jar file into your java classpath to use the utility class
5252

@@ -64,7 +64,7 @@ mvn install
6464
<dependency>
6565
<groupId>com.api.util</groupId>
6666
<artifactId>ApiSecurity</artifactId>
67-
<version>2.0.0-SNAPSHOT</version>
67+
<version>2.1.1</version>
6868
</dependency>
6969
```
7070

@@ -76,12 +76,12 @@ mvn install
7676
<dependency>
7777
<groupId>org.apache.logging.log4j</groupId>
7878
<artifactId>log4j-api</artifactId>
79-
<version>2.14.1</version>
79+
<version>2.15.0</version>
8080
</dependency>
8181
<dependency>
8282
<groupId>org.apache.logging.log4j</groupId>
8383
<artifactId>log4j-core</artifactId>
84-
<version>2.14.1</version>
84+
<version>2.15.0</version>
8585
</dependency>
8686
```
8787

@@ -125,7 +125,7 @@ gradle test jacocoTestReport
125125
```
126126

127127
The compiled _jar_ file will be located in the **build/libs** folder
128-
+ java-apex-api-security-2.0.0-SNAPSHOT.jar
128+
+ java-apex-api-security-2.1.1.jar
129129

130130
Import this jar into your java classpath to use the utility class
131131

@@ -140,7 +140,7 @@ repositories {
140140
mavenLocal()
141141
}
142142
dependencies {
143-
compile group: 'com.api.util', name: 'ApiSecurity', version: '2.0.0-SNAPSHOT'
143+
compile group: 'com.api.util', name: 'ApiSecurity', version: '2.1.1'
144144
}
145145
146146
```

build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77

8-
version '2.1.0'
8+
version '2.1.1'
99

1010
tasks.withType(JavaCompile) {
1111
options.encoding = "UTF-8"
@@ -20,8 +20,8 @@ dependencies {
2020

2121
//gradle 4.0
2222
compile group: 'commons-lang', name: 'commons-lang', version: '2.4'
23-
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.14.1'
24-
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.14.1'
23+
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.15.0'
24+
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.15.0'
2525
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.10.5.1'
2626
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
2727
compile group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.69'

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>com.api.util</groupId>
44
<artifactId>ApiSecurity</artifactId>
5-
<version>2.1.0</version>
5+
<version>2.1.1</version>
66
<build>
77
<plugins>
88
<plugin>

src/main/java/com/api/util/ApiSecurity/ApiSigning.java

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
import org.bouncycastle.openssl.jcajce.JcePEMDecryptorProviderBuilder;
1313
import org.apache.logging.log4j.Logger;
1414
import org.apache.logging.log4j.LogManager;
15+
import org.bouncycastle.operator.InputDecryptorProvider;
16+
import org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo;
17+
1518

1619
import org.bouncycastle.operator.InputDecryptorProvider;
1720
import org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo;
@@ -613,6 +616,7 @@ public static String getBaseString(String authPrefix
613616

614617
String baseString = null;
615618

619+
616620
try {
617621
authPrefix = authPrefix.toLowerCase();
618622

0 commit comments

Comments
 (0)